2 writes to ObjectInstance
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\ValidationContext.cs (2)
98
ObjectInstance
= instance;
134
ObjectInstance
= instance;
17 references to ObjectInstance
System.ComponentModel.Annotations (17)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
58
object? otherPropertyValue = otherPropertyInfo.GetValue(validationContext.
ObjectInstance
, null);
System\ComponentModel\DataAnnotations\ValidationContext.cs (3)
155
/// <see cref="
ObjectInstance
" /> might be a placeholder and should not be treated as the owner of the value.
163
public Type ObjectType =>
ObjectInstance
.GetType();
171
/// <see cref="
ObjectInstance
" />
System\ComponentModel\DataAnnotations\Validator.cs (13)
99
/// <see cref="ValidationContext.
ObjectInstance
" />on <paramref name="validationContext" />.
142
/// <see cref="ValidationContext.
ObjectInstance
" />on <paramref name="validationContext" />.
150
if (validationContext != null && instance != validationContext.
ObjectInstance
)
263
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
294
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
304
if (instance != validationContext.
ObjectInstance
)
435
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
493
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
506
if (validationContext != null && instance != validationContext.
ObjectInstance
)
633
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
676
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.
690
if (instance != validationContext.
ObjectInstance
)
1106
/// <see cref="ValidationContext.
ObjectInstance
" /> on <paramref name="validationContext" />.