Click or drag to resize

TypeExtensions Methods

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