private static String GetDefaultMemberName(Type type) { DefaultMemberAttribute attribute = (DefaultMemberAttribute) Attribute.GetCustomAttribute(type, typeof(DefaultMemberAttribute)); return attribute != null ? attribute.MemberName : ""; }