static string GetCharSet (TypeDefinition type)
{
TypeAttributes maskedStringFormat = type.Attributes & TypeAttributes.StringFormatMask;
if (maskedStringFormat == TypeAttributes.AnsiClass)
return CharSet.Ansi.ToString ();
if (maskedStringFormat == TypeAttributes.AutoClass)
return CharSet.Auto.ToString ();
if (maskedStringFormat == TypeAttributes.UnicodeClass)
return CharSet.Unicode.ToString ();
return CharSet.None.ToString ();
}