General Extension

Provides common extensions on basic system types like integers and numbers and other misc extensions.

Common

In

Determines whether an object is in a sequence. 

Low

High

Gets the lower/higher 4/8/16/32 bits of a 8/16/32/64 bit integer

ToHex

Connverts an integer to its equivalent hex string representation.

 

ToHex

Converts this byte array to its equivalent hex string representation. A Unicode character or a string can be used to delimiter values. For example, array {5, 18, 123, 214} will be converted to "05 12 7B D6" if a single space is used as the delimiter.

 

ToBytes

Converts the numeric value of an integer, a floating number or a System.DateTime to a byte array.

 

Between

InclusiveBetween

Determines whether a comparable object is between two bounds.

 

ToByte

ToSByte

ToInt16/32/64

ToUInt16/32/64

ToSingle

ToDouble

ToDateTime

ToBoolean

ToChar

Converts the value of a object to some other type. These are dummy methods that simplify access to frequently used members of System.Convert members.

Misc 

SystemHash

Serves as a hash function for a byte array using system algorithm provided by Microsoft.

ToString

Converts the value of a System.StringBuilder to a string. You may indicate the builder to clear itself after conversion.

 

Reset

Restarts a System.Timers.Timer object.

 

Last edited Sep 15, 2012 at 11:09 AM by rivermsfly, version 2

Comments

No comments yet.