public static string GetNamespaceForLanguage(string @namespace, ILanguage language, bool renameInvalidMembers) { var formatter = new PlainTextFormatter(new StringWriter()); ILanguageWriter writer = language.GetWriter(formatter, SimpleExceptionFormatter.Instance, GetWriterSettings(renameInvalidMembers)); writer.WriteNamespaceNavigationName(@namespace); return formatter.ToString(); }
public static string GetMemberNavigationPathName(object memberReference, ILanguage language) { var formatter = new PlainTextFormatter(new StringWriter()); ILanguageWriter writer = language.GetWriter(formatter, SimpleExceptionFormatter.Instance, GetWriterSettings()); writer.WriteMemberNavigationPathFullName(memberReference); return formatter.ToString(); }
public static string GetMemberDeclartionForLanguage(object memberReference, ILanguage language, bool renameInvalidMembers) { var formatter = new PlainTextFormatter(new StringWriter()); ILanguageWriter writer = language.GetWriter(formatter, SimpleExceptionFormatter.Instance, GetWriterSettings(renameInvalidMembers)); writer.WriteMemberNavigationName(memberReference); return formatter.ToString(); }
public static string GetMemberEscapedOnlyNameForLanguage(object memberReference, ILanguage language) { var formatter = new PlainTextFormatter(new StringWriter()); ILanguageWriter writer = language.GetWriter(formatter, SimpleExceptionFormatter.Instance, false); writer.WriteMemberEscapedOnlyName(memberReference); return formatter.ToString(); }
public static string GetMemberDeclartionForLanguage(object memberReference, ILanguage language, bool renameInvalidMembers) { V_0 = new PlainTextFormatter(new StringWriter()); language.GetWriter(V_0, SimpleExceptionFormatter.get_Instance(), MemberNamingUtils.GetWriterSettings(renameInvalidMembers)).WriteMemberNavigationName(memberReference); return V_0.ToString(); }
public static string GetMemberNavigationPathName(object memberReference, ILanguage language) { V_0 = new PlainTextFormatter(new StringWriter()); language.GetWriter(V_0, SimpleExceptionFormatter.get_Instance(), MemberNamingUtils.GetWriterSettings(false)).WriteMemberNavigationPathFullName(memberReference); return V_0.ToString(); }