Click or drag to resize

TypeExtensions Class

Extensions for System.Type

Read our blog on this topic: Effective Extensions – Extending Types in C#

Inheritance Hierarchy
SystemObject
  Xcalibur.ExtensionsTypeExtensions

Namespace:  Xcalibur.Extensions
Assembly:  Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
public static class TypeExtensions

The TypeExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleGetPropertyExtended

Gets the property from the type or base types.

Note: Type.GetProperty only looks at the actual type.

Read our blog on this topic: Effective Extensions – Extending Types in C#

Public methodStatic memberCode exampleInheritsFrom(Type, Type)

Determines if the specified type inherits from the target type.

Read our blog on this topic: Effective Extensions – Extending Types in C#

Public methodStatic memberCode exampleInheritsFromT(Type)

Determines if the specified type inherits from the target type.

Read our blog on this topic: Effective Extensions – Extending Types in C#

Public methodStatic memberIsObservableCollection(Object)

Determines whether the specified object is an ObservableCollection.

Read our blog on this topic: Effective Extensions – Extending Types in C#

Public methodStatic memberIsObservableCollection(Type)

Determines whether the specified type is an ObservableCollection.

Read our blog on this topic: Effective Extensions – Extending Types in C#

Top
See Also