Marshal.SystemDefaultCharSize Pole

Definicja

Reprezentuje domyślny rozmiar znaku w systemie; wartość domyślna to 2 dla systemów Unicode i 1 dla systemów ANSI. To pole jest tylko do odczytu.

public: static initonly int SystemDefaultCharSize;
public static readonly int SystemDefaultCharSize;
 staticval mutable SystemDefaultCharSize : int
Public Shared ReadOnly SystemDefaultCharSize As Integer 

Wartość pola

Przykłady

W poniższym przykładzie SystemDefaultCharSize pokazano pole. Ten przykład kodu jest częścią większego przykładu podanego Marshal dla klasy.

// Demonstrate the use of public static fields of the Marshal
// class.
Console::WriteLine(
    "SystemDefaultCharSize={0},SystemMaxDBCSCharSize={1}",
    Marshal::SystemDefaultCharSize,
    Marshal::SystemMaxDBCSCharSize);
// Demonstrate the use of public static fields of the Marshal class.
Console.WriteLine("SystemDefaultCharSize={0}, SystemMaxDBCSCharSize={1}",
    Marshal.SystemDefaultCharSize, Marshal.SystemMaxDBCSCharSize);
' Demonstrate the use of public static fields of the Marshal class.
Console.WriteLine("SystemDefaultCharSize={0}, SystemMaxDBCSCharSize={1}", Marshal.SystemDefaultCharSize, Marshal.SystemMaxDBCSCharSize)

Dotyczy

Zobacz też