GenericTypeHelper Class
Namespace: PTS
Assembly: PTSframework.dll
Provides a set of static methods for unbound generic types.
Syntax
public static class GenericTypeHelper
Inheritance
System.Object
GenericTypeHelper
Methods
IsOf<TValue>(TValue, TValue[])
Determines whether the specified item is equal to at least one of specified options.
Declaration
public static bool IsOf<TValue>(this TValue item, params TValue[] compareTo)
Parameters
Type | Name | Description |
---|---|---|
TValue | item | Primary item to test. |
TValue[] | compareTo | Items to match the item against. |
Returns
Type | Description |
---|---|
System.Boolean | If the item equals to at least one compared items then |
Type Parameters
Name | Description |
---|---|
TValue | Unbound item type. |
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()