Share via


TypeExtensions Class

 

Applies To: Dynamics CRM 2013

Extensions to help working with types. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Client.TypeExtensions

Syntax

public static class TypeExtensions
[ExtensionAttribute]
public ref class TypeExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type TypeExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class TypeExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static GetCustomAttributes<T>(Type)

Returns the collection of custom attributes for a given type.

System_CAPS_pubmethodSystem_CAPS_static GetEntityLogicalName(Type)

Returns the logical name value of the EntityLogicalNameAttribute attribute associated to the class type.

System_CAPS_pubmethodSystem_CAPS_static GetFirstOrDefaultCustomAttribute<T>(Type)

Returns the first custom attribute of a given type.

System_CAPS_pubmethodSystem_CAPS_static GetType(String)

Retrieves a type object by name and by searching through all available assemblies.

System_CAPS_pubmethodSystem_CAPS_static GetUnderlyingType(Type)

Retrieves the underlying type if the type is nullable, otherwise returns the current type.

System_CAPS_pubmethodSystem_CAPS_static IsA(Type, Type)

Determines if the input reference type is assignable from this type.

System_CAPS_pubmethodSystem_CAPS_static IsA<T>(Type)

Determines if the input reference type is assignable from this type.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top