Integer32Helper Class
Namespace: PTS
Assembly: PTSframework.dll
Provides a set of static methods for int type.
Syntax
public static class Integer32Helper
Inheritance
System.Object
Integer32Helper
Methods
NextInterval(Int32, Int32)
Returns the starting value of the next interval of given interval size.
Declaration
public static int NextInterval(this int value, int intervalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | value | Value to determine the next interval for. |
| System.Int32 | intervalSize | Value range representing the distance between start and end of an interval. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Value at which the next inteval of given size starts. |
ToEnum<TEnum>(Int32)
Converts the specified signed integer to an enumeration member.
Declaration
public static TEnum ToEnum<TEnum>(this int value)
where TEnum : Enum
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | value | The value convert to an enumeration member. |
Returns
| Type | Description |
|---|---|
| TEnum | An enumeration object with equivalent signed integer value. |
Type Parameters
| Name | Description |
|---|---|
| TEnum | The enumeration type to return. |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()