Imported Upstream version 6.0.0.176

Former-commit-id: 832f8d999f57cff48d1880b97be189dfed6c9dc2
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-04-13 08:31:55 +00:00
parent 64ac736ec5
commit 7aefecd37c
348 changed files with 50 additions and 52967 deletions

View File

@@ -56,7 +56,7 @@ namespace System {
if (field == null)
throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeFieldInfo"));
if (field.IsInitOnly || field.IsStatic)
if (field.IsStatic)
throw new ArgumentException(Environment.GetResourceString("Argument_TypedReferenceInvalidField"));
if (targetType != field.GetDeclaringTypeInternal() && !targetType.IsSubclassOf(field.GetDeclaringTypeInternal()))