public static string GetTypeNames(params Type[] types) { StringBuilder builder = new StringBuilder(); foreach ( Type type in types ) { if ( builder.Length > 0 ) { builder.Append(", "); } builder.Append(type.Name); } return builder.ToString(); } }