Table of Contents

Class IMetadata.Descriptor

Namespace
MarymoorStudios.Core.Rpc
Assembly
MarymoorStudios.Core.Rpc.dll

The base type for all late-bound capability descriptions.

[DataContract]
public record IMetadata.Descriptor : IEquatable<IMetadata.Descriptor>
Inheritance
IMetadata.Descriptor
Implements
Inherited Members

Remarks

Concrete late-bound capability descriptors should be derived from this base. This base is NOT to support partial materialization of capability descriptors by down-level consumers.

Constructors

Descriptor(Descriptor)

protected Descriptor(IMetadata.Descriptor original)

Parameters

original IMetadata.Descriptor

Descriptor(string, string)

The base type for all late-bound capability descriptions.

public Descriptor(string Name, string Description)

Parameters

Name string

The name of the capability.

Description string

A brief description of the capability (for display).

Remarks

Concrete late-bound capability descriptors should be derived from this base. This base is NOT to support partial materialization of capability descriptors by down-level consumers.

Properties

Description

A brief description of the capability (for display).

public string Description { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

The name of the capability.

public string Name { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string)

public void Deconstruct(out string Name, out string Description)

Parameters

Name string
Description string

Equals(Descriptor?)

public virtual bool Equals(IMetadata.Descriptor? other)

Parameters

other IMetadata.Descriptor

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Descriptor?, Descriptor?)

public static bool operator ==(IMetadata.Descriptor? left, IMetadata.Descriptor? right)

Parameters

left IMetadata.Descriptor
right IMetadata.Descriptor

Returns

bool

operator !=(Descriptor?, Descriptor?)

public static bool operator !=(IMetadata.Descriptor? left, IMetadata.Descriptor? right)

Parameters

left IMetadata.Descriptor
right IMetadata.Descriptor

Returns

bool