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
originalIMetadata.Descriptor
Descriptor(string, string)
The base type for all late-bound capability descriptions.
public Descriptor(string Name, string Description)
Parameters
NamestringThe name of the capability.
DescriptionstringA 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
otherIMetadata.Descriptor
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Descriptor?, Descriptor?)
public static bool operator ==(IMetadata.Descriptor? left, IMetadata.Descriptor? right)
Parameters
leftIMetadata.DescriptorrightIMetadata.Descriptor
Returns
operator !=(Descriptor?, Descriptor?)
public static bool operator !=(IMetadata.Descriptor? left, IMetadata.Descriptor? right)
Parameters
leftIMetadata.DescriptorrightIMetadata.Descriptor