Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / resources / resourcereader.cs
index 33c341eb4f74e4712112b521515ed6b665e192f2..03bebb8e07e613dc027ea8ae3e4da684492707c9 100644 (file)
@@ -7,7 +7,7 @@
 **
 ** Class:  ResourceReader
 ** 
-** <OWNER>[....]</OWNER>
+** <OWNER>Microsoft</OWNER>
 **
 **
 ** Purpose: Default way to read streams of resources on 
@@ -843,7 +843,7 @@ namespace System.Resources {
                 // types which do demand serialization permission in their 
                 // deserialization .cctors will fail.
                 // Also, use a serialization binder to limit bind requests to 
-                // our allowed list of [....] types.
+                // our allowed list of Microsoft types.
                 _objFormatter.Binder = _typeLimitingBinder;
                 _typeLimitingBinder.ExpectingToDeserialize(type);
                 graph = _objFormatter.UnsafeDeserialize(_store.BaseStream, null);
@@ -1017,8 +1017,7 @@ namespace System.Resources {
                 // The hexadecimal E translates to binary 1110
                 // So, with this & condition we are checking that none of the highest 3 bits are
                 // set before multiplying, as that would cause an overflow.
-                if ((_numResources & 0xE0000000) != 0){
-
+                if ((_numResources & 0xE0000000) != 0) {
                     throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
                 }
 
@@ -1054,7 +1053,7 @@ namespace System.Resources {
                 // The hexadecimal E translates to binary 1110
                 // So, with this & condition we are checking that none of the highest 3 bits are
                 // set before multiplying, as that would cause an overflow.
-                if ((_numResources & 0xE0000000) != 0){
+                if ((_numResources & 0xE0000000) != 0) {
                     throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
                 }
 
@@ -1149,7 +1148,7 @@ namespace System.Resources {
                 }
                 else {
                     // Enums should be safe to deserialize, and this helps out
-                    // partially trusted, localized [....] apps.
+                    // partially trusted, localized Microsoft apps.
                     if (resourceType.BaseType == typeof(Enum)) {
                         _safeToDeserialize[i] = true;
                         continue;
@@ -1324,7 +1323,7 @@ namespace System.Resources {
                     }
                 }
                 
-                // [....] types may internally use some enums that aren't 
+                // Microsoft types may internally use some enums that aren't 
                 // on our safe to deserialize list, like Font using FontStyle.
                 Type t = ObjectReader.FastBindToType(assemblyName, typeName);
                 if (t.IsEnum)
@@ -1335,7 +1334,7 @@ namespace System.Resources {
 
                 // Throw instead of returning null.
                 // If you're looking at this in a debugger, you've either 
-                // got a hacked .resources file on your hands, or [....] 
+                // got a hacked .resources file on your hands, or Microsoft 
                 // types have taken a new dependency on another type.  Check 
                 // whether assemblyName & typeName refer to a trustworthy type,
                 // & consider adding it to the TypesSafeToDeserialize list.
@@ -1421,7 +1420,7 @@ namespace System.Resources {
                                     value = _reader.LoadObject(_dataPosition);
                                 // If enumeration and subsequent lookups happen very
                                 // frequently in the same process, add a ResourceLocator
-                                // to _resCache here.  But [....] enumerates and
+                                // to _resCache here.  But Microsoft enumerates and
                                 // just about everyone else does lookups.  So caching
                                 // here may bloat working set.
                             }