C# Class Scorpio.Util

Show file Open project: qingfeng346/Scorpio-CSharp Class Usage Examples

Public Methods

Method Description
Assert ( bool b, Script script, string message ) : void
CanChangeType ( ScriptObject par, Type type ) : bool
ChangeType ( Script script, ScriptObject par, Type type ) : object
ChangeType_impl ( object value, Type conversionType ) : object
IsDelegateType ( Type type ) : bool
IsExtensionMethod ( MemberInfo method ) : bool
IsExtensionType ( Type type ) : bool
IsNullOrEmpty ( String str ) : bool
IsParamArray ( ParameterInfo info ) : bool
IsVoid ( Type type ) : bool
ReadString ( BinaryReader reader ) : string
ToDouble ( object value ) : double
ToInt32 ( object value ) : int
ToInt64 ( object value ) : long
WriteString ( BinaryWriter writer, string str ) : void

Method Details

Assert() public static method

public static Assert ( bool b, Script script, string message ) : void
b bool
script Script
message string
return void

CanChangeType() public static method

public static CanChangeType ( ScriptObject par, Type type ) : bool
par ScriptObject
type System.Type
return bool

ChangeType() public static method

public static ChangeType ( Script script, ScriptObject par, Type type ) : object
script Script
par ScriptObject
type System.Type
return object

ChangeType_impl() public static method

public static ChangeType_impl ( object value, Type conversionType ) : object
value object
conversionType System.Type
return object

IsDelegateType() public static method

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

IsExtensionMethod() public static method

public static IsExtensionMethod ( MemberInfo method ) : bool
method MemberInfo
return bool

IsExtensionType() public static method

public static IsExtensionType ( Type type ) : bool
type Type
return bool

IsNullOrEmpty() public static method

public static IsNullOrEmpty ( String str ) : bool
str String
return bool

IsParamArray() public static method

public static IsParamArray ( ParameterInfo info ) : bool
info ParameterInfo
return bool

IsVoid() public static method

public static IsVoid ( Type type ) : bool
type Type
return bool

ReadString() public static method

public static ReadString ( BinaryReader reader ) : string
reader BinaryReader
return string

ToDouble() public static method

public static ToDouble ( object value ) : double
value object
return double

ToInt32() public static method

public static ToInt32 ( object value ) : int
value object
return int

ToInt64() public static method

public static ToInt64 ( object value ) : long
value object
return long

WriteString() public static method

public static WriteString ( BinaryWriter writer, string str ) : void
writer BinaryWriter
str string
return void