TypeExtensions Class |
[This is preliminary documentation and is subject to change.]
Namespace: CSInfrastructure.Extensions
public static class TypeExtensions
The TypeExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| Cast |
Attempts to cast an object to the provided type
| |
| FindPrivateBackingFieldOfIEnumerable |
Attempts to find the private field which holds the data of a type that implements IEnumerable
| |
| GetElementTypeOfCollection |
Determines the Type of elements in a collection type (e.g. string[], List{T}, ...)
| |
| GetPropertyForCustomAttributesT |
Attempts to find a property on type typeForJob that has an attribute of type T defined.
| |
| GetTypeNameWithoutGenerics |
Returns the name of a type with generic parameters, without its generic parameter
|