10 references to ObjectInstance
System.ComponentModel.DataAnnotations (10)
DataAnnotations\CompareAttribute.cs (1)
44
object otherPropertyValue = otherPropertyInfo.GetValue(validationContext.
ObjectInstance
, null);
DataAnnotations\ValidationContext.cs (2)
155
return 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>
118
if (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>
233
if (instance != validationContext.
ObjectInstance
) {
335
/// <see cref="ValidationContext.
ObjectInstance
"/> on <paramref name="validationContext"/>.</exception>