C# Class Nintenlord.Event_assembler.IntegerExtensions

Extensions and helper methods to integers
ファイルを表示 Open project: Diegoisawesome/AwesomeMapEditor-old

Public Methods

Method Description
Clamp ( this i, int min, int max ) : int
IsInRange ( this i, int min, int max ) : bool
ToBinString ( this i, string postfix ) : string
ToHexString ( this i, string prefix ) : string
ToMod ( this i, int mod ) : int

Method Details

Clamp() public static method

public static Clamp ( this i, int min, int max ) : int
i this
min int
max int
return int

IsInRange() public static method

public static IsInRange ( this i, int min, int max ) : bool
i this
min int
max int
return bool

ToBinString() public static method

public static ToBinString ( this i, string postfix ) : string
i this
postfix string
return string

ToHexString() public static method

public static ToHexString ( this i, string prefix ) : string
i this
prefix string
return string

ToMod() public static method

public static ToMod ( this i, int mod ) : int
i this
mod int
return int