CollectionConvertor Class
Namespace: PTS.Collections
Assembly: PTS.Collections.dll
Syntax
public static class CollectionConvertor
Inheritance
System.Object
CollectionConvertor
Methods
ToEnumHashSet<TEnum>(ICollection<String>)
Declaration
public static HashSet<TEnum> ToEnumHashSet<TEnum>(this ICollection<string> collection)
where TEnum : struct, Enum
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.ICollection<System.String> | collection |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.HashSet<TEnum> |
Type Parameters
| Name | Description |
|---|---|
| TEnum |
ToEnumList<TEnum>(ICollection<String>)
Declaration
public static List<TEnum> ToEnumList<TEnum>(this ICollection<string> collection)
where TEnum : struct, Enum
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.ICollection<System.String> | collection |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<TEnum> |
Type Parameters
| Name | Description |
|---|---|
| TEnum |
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()