TypeAssociationAttribute Class

Represents a named association between two types.

Definition

Namespace: Extreme.Mathematics.Generic
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public class TypeAssociationAttribute : Attribute
Inheritance
Object  →  Attribute  →  TypeAssociationAttribute

Remarks

Use the TypeAssociationAttribute attribute to specify a relationship between two types. Type associations are stored in a global TypeAssociationRegistry.

Type associations have three components. The Owner is the type instance that has a property specified by the Key value with value Value. One key has been predefined. ArithmeticKey is used to associate the type that implements generic arithmetic operations (the value) with the operand type (the owner).

This attribute can be defined as an assembly-level attribute, or on types. If it is defined on a type, this type is the Owner of the association.

Constructors

TypeAssociationAttribute(String, Type) Constructs a new TypeAssociationAttribute
TypeAssociationAttribute(Type, String, Type) Constructs a new TypeAssociationAttribute

Properties

Key Gets the key that specifies the nature of the type association.
Owner Gets the owner type of the association.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Value Gets the value of the type association.

Methods

EqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also