Table of Contents

Class DependencyObjectType

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Type cache for all DependencyObject derived types

public class DependencyObjectType
Inheritance
DependencyObjectType

Remarks

Every DependencyObject stores a reference to its DependencyObjectType. This is an object that represents a specific system (CLR) Type.

DTypes have 2 purposes:

  1. More performant type operations (especially for Expressions that rely heavily on type inspection)
  2. Forces static constructors of base types to always run first. This consistancy is necessary for components (such as Expressions) that rely on static construction order for correctness.

Properties

BaseType

The DependencyObjectType of the base class

Id

Zero-based unique identifier for constant-time array lookup operations

Name

Returns the name of the represented system (CLR) type

SystemType

The system (CLR) type that this DependencyObjectType represents

Methods

FromSystemType(Type)

Retrieve a DependencyObjectType that represents a given system (CLR) type

GetHashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table

IsInstanceOfType(DependencyObject)

Determines whether the specifed object is an instance of the current DependencyObjectType

IsSubclassOf(DependencyObjectType)

Determines whether the current DependencyObjectType derives from the specified DependencyObjectType