10 references to ObjectInstance
System.ComponentModel.DataAnnotations (10)
DataAnnotations\CompareAttribute.cs (1)
44object otherPropertyValue = otherPropertyInfo.GetValue(validationContext.ObjectInstance, null);
DataAnnotations\ValidationContext.cs (2)
155return this.ObjectInstance.GetType(); 164/// to see if can use that instead. Lacking that, it returns <see cref="MemberName"/>. The <see cref="ObjectInstance"/>
DataAnnotations\Validator.cs (7)
81/// <see cref="ValidationContext.ObjectInstance"/>on <paramref name="validationContext"/>.</exception> 112/// <see cref="ValidationContext.ObjectInstance"/>on <paramref name="validationContext"/>.</exception> 118if (validationContext != null && instance != validationContext.ObjectInstance) { 205/// <see cref="ValidationContext.ObjectInstance"/> on <paramref name="validationContext"/>.</exception> 224/// <see cref="ValidationContext.ObjectInstance"/> on <paramref name="validationContext"/>.</exception> 233if (instance != validationContext.ObjectInstance) { 335/// <see cref="ValidationContext.ObjectInstance"/> on <paramref name="validationContext"/>.</exception>