summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/Resources
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2018-11-26 14:08:38 -0500
committerJan Kotas <jkotas@microsoft.com>2018-11-26 11:08:38 -0800
commita6729dab35fde5d50fb12b06aeb77d3e1f3be872 (patch)
tree35274e0f0696d9ea92c013a4face227766085c50 /src/System.Private.CoreLib/Resources
parent4a9b5737d8e28093a14d885f735f3eb20722c8e2 (diff)
downloadcoreclr-a6729dab35fde5d50fb12b06aeb77d3e1f3be872.tar.gz
coreclr-a6729dab35fde5d50fb12b06aeb77d3e1f3be872.tar.bz2
coreclr-a6729dab35fde5d50fb12b06aeb77d3e1f3be872.zip
Remove TypedReference.MakeTypedReference readonly restriction (#21193)
TypedReference.MakeTypedReference validates that the fields aren't readonly, which limits our ability to make fields readonly in core while maintaining BinaryFormatter compatibility. This restriction isn't useful for a variety of reasons, though: reflection allows readonly fields to be set, but more importantly, TypedReference.SetTypedReference has always thrown NotSupportedException, so it's not even actually usable. This change just removes the readonly check from MakeTypedReference.
Diffstat (limited to 'src/System.Private.CoreLib/Resources')
-rw-r--r--src/System.Private.CoreLib/Resources/Strings.resx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/Resources/Strings.resx b/src/System.Private.CoreLib/Resources/Strings.resx
index dcf61a0dd2..9fa2e10ce7 100644
--- a/src/System.Private.CoreLib/Resources/Strings.resx
+++ b/src/System.Private.CoreLib/Resources/Strings.resx
@@ -1499,7 +1499,7 @@
<value>The DaylightTransitionStart property must not equal the DaylightTransitionEnd property.</value>
</data>
<data name="Argument_TypedReferenceInvalidField" xml:space="preserve">
- <value>Field '{0}' in TypedReferences cannot be static or init only.</value>
+ <value>Field '{0}' in TypedReferences cannot be static.</value>
</data>
<data name="Argument_TypeIsWinRTType" xml:space="preserve">
<value>The type must not be a Windows Runtime type.</value>