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