2 writes to MemberName
System.ComponentModel.DataAnnotations (1)
DataAnnotations\Validator.cs (1)
447context.MemberName = property.Name;
System.Web (1)
ModelBinding\DataAnnotationsModelValidator.cs (1)
81context.MemberName = memberName;
15 references to MemberName
System.ComponentModel.DataAnnotations (14)
DataAnnotations\ValidationAttribute.cs (2)
381string[] memberNames = validationContext.MemberName != null ? new string[] { validationContext.MemberName } : null;
DataAnnotations\ValidationAttributeStore.cs (5)
60PropertyStoreItem item = typeItem.GetPropertyStoreItem(validationContext.MemberName); 72PropertyStoreItem item = typeItem.GetPropertyStoreItem(validationContext.MemberName); 84PropertyStoreItem item = typeItem.GetPropertyStoreItem(validationContext.MemberName); 90/// <see cref="ValidationContext.MemberName"/> references a property on 99return typeItem.TryGetPropertyStoreItem(validationContext.MemberName, out item);
DataAnnotations\ValidationContext.cs (4)
164/// to see if can use that instead. Lacking that, it returns <see cref="MemberName"/>. The <see cref="ObjectInstance"/> 173this._displayName = this.MemberName; 222/// <returns>A display-friendly name of the member represented by the <see cref="MemberName"/>.</returns> 238return displayName ?? this.MemberName;
DataAnnotations\Validator.cs (3)
38/// When the <see cref="ValidationContext.MemberName"/> of <paramref name="validationContext"/> is not a valid property. 43string propertyName = validationContext.MemberName; 184EnsureValidPropertyType(validationContext.MemberName, propertyType, value);
System.Web (1)
Security\MembershipPasswordAttribute.cs (1)
173string[] memberNames = (validationContext != null) ? new[] { validationContext.MemberName } : null;