Skip to content
Auto
Products

ContractDefinition

Namespace: TagBites.ComponentModel.Composition
Assembly: TagBites.ComponentModel.Composition.dll
Product: TagBites.ComponentModel.Composition v. 1.2.1

Contract of an export: a contract type with an optional contract name.

public sealed class ContractDefinition

Inheritance: object → ContractDefinition

Contract of an export: a contract type with an optional contract name.

public ContractDefinition(string contractName, Type contractType)
  • contractName string
    Contract name, or null for the contract without a name.
  • contractType Type
    Contract type.

Gets the contract name, or null when the contract has no name.

public string ContractName { get; }

string

Gets the contract type.

public Type ContractType { get; }

Type

public virtual bool Equals(object obj)

bool

public virtual int GetHashCode()

int

operator ==(ContractDefinition, ContractDefinition)

Section titled “operator ==(ContractDefinition, ContractDefinition)”
public static bool operator ==(ContractDefinition left, ContractDefinition right)

bool

operator !=(ContractDefinition, ContractDefinition)

Section titled “operator !=(ContractDefinition, ContractDefinition)”
public static bool operator !=(ContractDefinition left, ContractDefinition right)

bool