2 writes to ObjectInstance
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\ValidationContext.cs (2)
98
ObjectInstance
= instance;
134
ObjectInstance
= instance;
16 references to ObjectInstance
System.ComponentModel.Annotations (16)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
48
object? otherPropertyValue = otherPropertyInfo.GetValue(validationContext.
ObjectInstance
, null);
System\ComponentModel\DataAnnotations\ValidationContext.cs (2)
157
public Type ObjectType =>
ObjectInstance
.GetType();
165
/// <see cref="
ObjectInstance
" />
System\ComponentModel\DataAnnotations\Validator.cs (13)
94
/// <see cref="ValidationContext.
ObjectInstance
" />on <paramref name="validationContext" />.
132
/// <see cref="ValidationContext.
ObjectInstance
" />on <paramref name="validationContext" />.
140
if (validationContext != null && instance != validationContext.
ObjectInstance
)
248
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
274
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
284
if (instance != validationContext.
ObjectInstance
)
397
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
443
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
455
if (validationContext != null && instance != validationContext.
ObjectInstance
)
554
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
582
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
595
if (instance != validationContext.
ObjectInstance
)
1009
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.