C# Class ProtoBuf.Helpers

Not all frameworks are created equal (fx1.1 vs fx2.0, micro-framework, compact-framework, silverlight, etc). This class simply wraps up a few things that would otherwise make the real code unnecessarily messy, providing fallback implementations if necessary.
Afficher le fichier Open project: wpszz/CSLightForUnity Class Usage Examples

Méthodes publiques

Свойство Type Description
EmptyTypes System.Type[]

Méthodes publiques

Méthode Description
AppendLine ( System builder ) : System.Text.StringBuilder
BlockCopy ( byte from, int fromIndex, byte to, int toIndex, int count ) : void
IsInfinity ( double value ) : bool
IsInfinity ( float value ) : bool
IsNullOrEmpty ( string value ) : bool
Sort ( int keys, object values ) : void

Private Methods

Méthode Description
DebugAssert ( bool condition ) : void
DebugAssert ( bool condition, string message ) : void
DebugWriteLine ( string message ) : void
DebugWriteLine ( string message, object obj ) : void
GetInstanceMember ( TypeInfo declaringType, string name ) : MemberInfo
GetInstanceMethod ( Type declaringType, string name ) : MethodInfo
GetInstanceMethod ( Type declaringType, string name, Type types ) : MethodInfo
GetInstanceMethod ( TypeInfo declaringType, string name ) : MethodInfo
GetInstanceMethod ( TypeInfo declaringType, string name, Type types ) : MethodInfo
GetStaticMethod ( Type declaringType, string name ) : MethodInfo
GetStaticMethod ( TypeInfo declaringType, string name ) : MethodInfo
Helpers ( ) : System
IsSubclassOf ( Type type, Type baseClass ) : bool
TraceWriteLine ( string message ) : void

Method Details

AppendLine() public static méthode

public static AppendLine ( System builder ) : System.Text.StringBuilder
builder System
Résultat System.Text.StringBuilder

BlockCopy() public static méthode

public static BlockCopy ( byte from, int fromIndex, byte to, int toIndex, int count ) : void
from byte
fromIndex int
to byte
toIndex int
count int
Résultat void

IsInfinity() public static méthode

public static IsInfinity ( double value ) : bool
value double
Résultat bool

IsInfinity() public static méthode

public static IsInfinity ( float value ) : bool
value float
Résultat bool

IsNullOrEmpty() public static méthode

public static IsNullOrEmpty ( string value ) : bool
value string
Résultat bool

Sort() public static méthode

public static Sort ( int keys, object values ) : void
keys int
values object
Résultat void

Property Details

EmptyTypes public_oe static_oe property

public static Type[],System EmptyTypes
Résultat System.Type[]