This commit is contained in:
@@ -111,10 +111,20 @@ namespace AyaNova.Util
|
||||
}
|
||||
ret = s.Substring(0, Math.Abs(diff)) + unique;
|
||||
}
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
//used to trim an enum type down to only it's most relevant (rightmost) portion
|
||||
public static string TrimTypeName(string str)
|
||||
{
|
||||
if (str.Contains('.'))
|
||||
{
|
||||
return str.Substring(str.LastIndexOf('.') + 1);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
}//eoc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user