Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourceManager.MagicNumber Field


Holds the number used to identify resource files.

Namespace:   System.Resources
Assembly:  mscorlib (in mscorlib.dll)

Public Shared ReadOnly MagicNumber As Integer

Field Value

Type: System.Int32

The value is set to 0xBEEFCACE. The first four bytes of the system default file format contain a 32-bit signed integer in little-endian format (see Encoding).

If the MagicNumber is found, the bytes following it will be a version number for a ResourceManager header, followed by a number indicating how many bytes should be skipped to get past this header. The next number indicates the version of the ResourceManager that created the header, followed by version specific information.

The version number for the current implementation is one. The next bytes are a length-prefixed string containing the name of an IResourceReader, which can read this file.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2016 Microsoft