C# 클래스 ImageProcessor.Common.Extensions.IntegerExtensions

Encapsulates a series of time saving extension methods to the T:System.Int32 class.
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor

공개 메소드들

메소드 설명
ParseInvariant ( this value, string toParse ) : int

Converts the string representation of a number in a specified culture-specific format to its 32-bit signed integer equivalent using invariant culture.

ToByte ( this value ) : byte

Converts an T:System.Int32 value into a valid T:System.Byte. If the value given is less than 0 or greater than 255, the value will be constrained into those restricted ranges.

메소드 상세

ParseInvariant() 공개 정적인 메소드

Converts the string representation of a number in a specified culture-specific format to its 32-bit signed integer equivalent using invariant culture.
public static ParseInvariant ( this value, string toParse ) : int
value this The integer.
toParse string A string containing a number to convert.
리턴 int

ToByte() 공개 정적인 메소드

Converts an T:System.Int32 value into a valid T:System.Byte. If the value given is less than 0 or greater than 255, the value will be constrained into those restricted ranges.
public static ToByte ( this value ) : byte
value this /// The to convert. ///
리턴 byte