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
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
stringThe name of the capability.
Description
stringA brief description of the capability (for display).
Remarks
Concrete late-bound capability descriptors should be derived from this base. This base is NOT
Properties
Description
A brief description of the capability (for display).
public string Description { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Name
The name of the capability.
public string Name { get; init; }
Property Value
Methods
Deconstruct(out string, out string)
public void Deconstruct(out string Name, out string Description)
Parameters
Equals(Descriptor?)
public virtual bool Equals(IMetadata.Descriptor? other)
Parameters
other
IMetadata.Descriptor
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Descriptor?, Descriptor?)
public static bool operator ==(IMetadata.Descriptor? left, IMetadata.Descriptor? right)
Parameters
left
IMetadata.Descriptorright
IMetadata.Descriptor
Returns
operator !=(Descriptor?, Descriptor?)
public static bool operator !=(IMetadata.Descriptor? left, IMetadata.Descriptor? right)
Parameters
left
IMetadata.Descriptorright
IMetadata.Descriptor