System.Resources.Extensions Adds a resource of specified type represented by a string value. If the type is a primitive type, the value will be converted using TypeConverter by the writer to that primitive type and stored in the resources in binary format. If the type is not a primitive type, the string value will be stored in the resources as a string and converted with a TypeConverter for the type when reading the resource. This is done to avoid activating arbitrary types during resource writing. Resource name Value of the resource in string form understood by the type's TypeConverter Assembly qualified type name of the resource Adds a resource of specified type represented by a byte[] value which will be passed to the type's TypeConverter when reading the resource. Resource name Value of the resource in byte[] form understood by the type's TypeConverter Assembly qualified type name of the resource Adds a resource of specified type represented by a byte[] value which will be passed to BinaryFormatter when reading the resource. Resource name Value of the resource in byte[] form understood by BinaryFormatter Assembly qualified type name of the resource Adds a resource of specified type represented by a Stream value which will be passed to the type's constructor when reading the resource. Resource name Value of the resource in Stream form understood by the types constructor Assembly qualified type name of the resource Indicates that the stream should be closed after resources have been written Compares type names as strings, ignoring version. When type names are missing, mscorlib is assumed. This comparer is not meant to capture all scenarios (eg: TypeForwards) but is meant to serve as a best effort, avoiding false positives, in the absence of real type metadata. Stream length must be non-negative and less than 2^31 - 1 - origin. Stream was not readable Stream was not writable. The ResourceReader class does not know how to read this version of .resources files. Expected version: {0} This file: {1} Corrupt .resources file. The specified type doesn't exist. Corrupt .resources file. String length must be non-negative. Corrupt .resources file. The specified data length '{0}' is not a valid position in the stream. Corrupt .resources file. A resource name extends past the end of the stream. Corrupt .resources file. The resource name for name index {0} extends past the end of the stream. Corrupt .resources file. Invalid offset '{0}' into data section. Corrupt .resources file. Unable to read resources from this file because of invalid header information. Try regenerating the .resources file. Corrupt .resources file. String for name index '{0}' extends past the end of the file. Corrupt .resources file. Invalid offset '{0}' into name section. Corrupt .resources file. Resource name extends past the end of the file. The type serialized in the .resources file was not the same type that the .resources file said it contained. Expected '{0}' but read '{1}'. Corrupt .resources file. The specified type doesn't match the available data in the stream. Too many bytes in what should have been a 7 bit encoded Int32. Enumeration already finished. Enumeration has not started. Call MoveNext. Resource was of type '{0}' instead of String - call GetObject instead. The resource writer has already been closed and cannot be edited. This platform does not support binary serialized resources. Cannot read resources that depend on serialization. Stream does not support seeking. This .resources file should not be read with this reader. The resource reader type is "{0}". Cannot access a closed resource set. Use of ResourceManager for custom types is disabled. Set the MSBuild Property CustomResourceTypesSupport to true in order to enable it. ResourceReader is closed. Stream is not a valid resource file. Could not load a converter for type {0}.