C# Class System.Runtime.Serialization.Formatters.Binary.BinaryCommon

显示文件 Open project: runefs/Marvin Class Usage Examples

Public Properties

Property Type Description
BinaryHeader byte[]
UseReflectionSerialization bool

Public Methods

Method Description
CheckSerializable ( Type type, ISurrogateSelector selector, StreamingContext context ) : void
GetTypeCode ( Type type ) : byte
GetTypeFromCode ( int code ) : Type
IsPrimitive ( Type type ) : bool
SwapBytes ( byte byteArray, int size, int dataSize ) : void

Private Methods

Method Description
BinaryCommon ( ) : System

Method Details

CheckSerializable() public static method

public static CheckSerializable ( Type type, ISurrogateSelector selector, StreamingContext context ) : void
type System.Type
selector ISurrogateSelector
context StreamingContext
return void

GetTypeCode() public static method

public static GetTypeCode ( Type type ) : byte
type System.Type
return byte

GetTypeFromCode() public static method

public static GetTypeFromCode ( int code ) : Type
code int
return System.Type

IsPrimitive() public static method

public static IsPrimitive ( Type type ) : bool
type System.Type
return bool

SwapBytes() public static method

public static SwapBytes ( byte byteArray, int size, int dataSize ) : void
byteArray byte
size int
dataSize int
return void

Property Details

BinaryHeader public_oe static_oe property

public static byte[] BinaryHeader
return byte[]

UseReflectionSerialization public_oe static_oe property

public static bool UseReflectionSerialization
return bool