26 references to SR
System.Reflection.Context (26)
System\Reflection\Context\Custom\AttributeUtils.cs (3)
194
throw new FormatException(
SR
.Format(
SR
.Format_AttributeUsage, attributeFilterType));
202
throw new InvalidOperationException(
SR
.InvalidOperation_NullAttribute);
System\Reflection\Context\Custom\CustomType.cs (2)
273
throw new AmbiguousMatchException(
SR
.Format(
SR
.Arg_AmbiguousMatchException_MemberInfo, declaringType, match));
System\Reflection\Context\CustomReflectionContext.cs (3)
121
throw new InvalidOperationException(
SR
.InvalidOperation_AddNullProperty);
125
throw new InvalidOperationException(
SR
.InvalidOperation_AddPropertyDifferentContext);
130
throw new InvalidOperationException(
SR
.InvalidOperation_AddPropertyDifferentType);
System\Reflection\Context\CustomReflectionContext.Projector.cs (4)
140
throw new InvalidOperationException(
SR
.Format(
SR
.InvalidOperation_InvalidMethodType, value.GetType()));
255
throw new InvalidOperationException(
SR
.Format(
SR
.InvalidOperation_InvalidMemberType, value.Name, value.MemberType));
System\Reflection\Context\Delegation\DelegatingType.cs (2)
23
throw new InvalidOperationException(
SR
.Format(
SR
.InvalidOperation_NoTypeInfoForThisType, type.FullName));
System\Reflection\Context\Virtual\VirtualMethodBase.cs (2)
94
throw new InvalidOperationException(
SR
.Format(
SR
.InvalidOperation_NotGenericMethodDefinition, this));
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (4)
107
throw new ArgumentException(
SR
.Argument_GetMethNotFnd);
116
throw new ArgumentException(
SR
.Argument_GetMethNotFnd);
139
throw new InvalidOperationException(
SR
.InvalidOperation_EnumLitValueNotFound);
144
throw new InvalidOperationException(
SR
.InvalidOperation_EnumLitValueNotFound);
System\Reflection\Context\Virtual\VirtualPropertyInfo.cs (2)
29
throw new ArgumentException(
SR
.ArgumentNull_GetterOrSetterMustBeSpecified);
33
throw new ArgumentException(
SR
.Argument_PropertyTypeFromDifferentContext);
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertySetter.cs (4)
44
throw new TargetException(
SR
.Target_InstanceMethodRequiresTarget);
47
throw new TargetException(
SR
.Target_ObjectTargetMismatch);
50
throw new ArgumentException(
SR
.Format(
SR
.Argument_ObjectArgumentMismatch, value.GetType(), ReturnType));