StructHelper Class
Namespace: PTS
Assembly: PTSframework.dll
Provides a set of static methods for struct
types.
Syntax
public static class StructHelper
Inheritance
System.Object
StructHelper
Methods
ToNonNullable<TValue>(Nullable<TValue>)
Returns non-nullable variant of given value type.
Declaration
public static TValue ToNonNullable<TValue>(this TValue? value)
where TValue : struct
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<TValue> | value | Nullable value type to convert to non-nullable. |
Returns
Type | Description |
---|---|
TValue | Non-nullable variant of given |
Type Parameters
Name | Description |
---|---|
TValue | Nullable value to represent as non-nullable. |
ToNullable<TValue>(TValue)
Returns nullable variant of given value type.
Declaration
public static TValue? ToNullable<TValue>(this TValue value)
where TValue : struct
Parameters
Type | Name | Description |
---|---|---|
TValue | value | Value to represent as nullable. |
Returns
Type | Description |
---|---|
System.Nullable<TValue> | Nullable variant of given |
Type Parameters
Name | Description |
---|---|
TValue | Value type to convert to nullable. |
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()