Table of Contents

Class AnnotationSet

Namespace
RDCore.SDK.Extensibility.Annotations
Assembly
RDCore.SDK.dll

The annotations one extension provides, with their descriptions in each language of the platform, as its assembly declares them (Read(Assembly)) and its manifest carries them (AnnotationSet).

public sealed record AnnotationSet : IEquatable<AnnotationSet>
Inheritance
AnnotationSet
Implements
Inherited Members

Properties

Declarations

The annotations.

public required AnnotationDeclaration[] Declarations { get; init; }

Property Value

AnnotationDeclaration[]

Descriptions

The description of each annotation and of each of its parameters, by its key (KeyOf(AnnotationDeclaration), KeyOf(AnnotationDeclaration, AnnotationParameter)), in each language of the platform, by its two-letter name (Languages). Read from an extension's resources (Read(Assembly)), a text the provider has none of in a language is the one its resources fall back on; a text it has in no language is missing from every one.

public Dictionary<string, Dictionary<string, string>> Descriptions { get; init; }

Property Value

Dictionary<string, Dictionary<string, string>>

Methods

KeyOf(AnnotationDeclaration)

The key of an annotation's description: its name, Description.

public static string KeyOf(AnnotationDeclaration annotation)

Parameters

annotation AnnotationDeclaration

The annotation.

Returns

string

KeyOf(AnnotationDeclaration, AnnotationParameter)

The key of a parameter's description: the annotation's name and the parameter's, joined by an underscore, Description_Text.

public static string KeyOf(AnnotationDeclaration annotation, AnnotationParameter parameter)

Parameters

annotation AnnotationDeclaration

The annotation.

parameter AnnotationParameter

One of its parameters.

Returns

string