**
** Class: ResourceReader
**
-** <OWNER>[....]</OWNER>
+** <OWNER>Microsoft</OWNER>
**
**
** Purpose: Default way to read streams of resources on
// 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);
// 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"));
}
// 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"));
}
}
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;
}
}
- // [....] 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)
// 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.
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.
}