Udostępnij za pośrednictwem


ResourceManager.MagicNumber Field

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Holds the number used to identify resource files.

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

Syntax

'Declaration
Public Shared ReadOnly MagicNumber As Integer
public static readonly int MagicNumber

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.