public static MemberInfoToString ( |
||
member | ||
return | string |
static void EmitMember(StringBuilder builder, MemberInfo mi) { String name = COMUtilities.MemberInfoToString(mi); if (!String.IsNullOrWhiteSpace(name)) { builder.Append(" "); if (mi is FieldInfo) { builder.AppendFormat("{0};", name).AppendLine(); } else { builder.AppendLine(name); } } }
static string TypeToText(Type t) { StringBuilder builder = new StringBuilder(); builder.AppendFormat("Name: {0}", t.Name).AppendLine(); builder.AppendFormat("IID: {0}", t.GUID).AppendLine(); builder.AppendLine("{"); foreach (MemberInfo mi in t.GetMembers()) { String name = COMUtilities.MemberInfoToString(mi); if (!String.IsNullOrWhiteSpace(name)) { builder.Append(" "); builder.AppendLine(name); } } builder.AppendLine("}"); return(builder.ToString()); }