Click or drag to resize

TypeExtensions Class

[This is preliminary documentation and is subject to change.]

Defines extension methods for Type
Inheritance Hierarchy
SystemObject
  CSInfrastructure.ExtensionsTypeExtensions

Namespace:  CSInfrastructure.Extensions
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static class TypeExtensions

The TypeExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCast
Attempts to cast an object to the provided type
Public methodStatic memberFindPrivateBackingFieldOfIEnumerable
Attempts to find the private field which holds the data of a type that implements IEnumerable
Public methodStatic memberGetElementTypeOfCollection
Determines the Type of elements in a collection type (e.g. string[], List{T}, ...)
Public methodStatic memberGetPropertyForCustomAttributesT
Attempts to find a property on type typeForJob that has an attribute of type T defined.
Public methodStatic memberCode exampleGetTypeNameWithoutGenerics
Returns the name of a type with generic parameters, without its generic parameter
Top
See Also