public CodeGenerationTools() { Code = new CSharpCodeProvider(); Tools = new MetadataTools(); FullyQualifySystemTypes = false; CamelCaseFields = true; }
private static string GetAccessibility(MetadataItem item, string name) { string accessibility; if (MetadataTools.TryGetStringMetadataPropertySetting(item, name, out accessibility)) { return(TranslateUserAccessibilityToCSharpAccessibility(accessibility)); } return("public"); }