summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Reflection/MdFieldInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Reflection/MdFieldInfo.cs')
-rw-r--r--src/mscorlib/src/System/Reflection/MdFieldInfo.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mscorlib/src/System/Reflection/MdFieldInfo.cs b/src/mscorlib/src/System/Reflection/MdFieldInfo.cs
index 994cdc6879..2ec6abd713 100644
--- a/src/mscorlib/src/System/Reflection/MdFieldInfo.cs
+++ b/src/mscorlib/src/System/Reflection/MdFieldInfo.cs
@@ -79,7 +79,7 @@ namespace System.Reflection
[Diagnostics.DebuggerHidden]
public override void SetValueDirect(TypedReference obj, Object value)
{
- throw new FieldAccessException(Environment.GetResourceString("Acc_ReadOnly"));
+ throw new FieldAccessException(SR.Acc_ReadOnly);
}
[DebuggerStepThroughAttribute]
@@ -98,7 +98,7 @@ namespace System.Reflection
Object value = MdConstant.GetValue(GetRuntimeModule().MetadataImport, m_tkField, FieldType.GetTypeHandleInternal(), raw);
if (value == DBNull.Value)
- throw new NotSupportedException(Environment.GetResourceString("Arg_EnumLitValueNotFound"));
+ throw new NotSupportedException(SR.Arg_EnumLitValueNotFound);
return value;
}
@@ -107,7 +107,7 @@ namespace System.Reflection
[Diagnostics.DebuggerHidden]
public override void SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
{
- throw new FieldAccessException(Environment.GetResourceString("Acc_ReadOnly"));
+ throw new FieldAccessException(SR.Acc_ReadOnly);
}
public override Type FieldType