This commit is contained in:
2020-02-11 19:25:12 +00:00
parent cb30a41381
commit ef063d5864
9 changed files with 118 additions and 122 deletions

View File

@@ -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