Table of Contents

Class ASNameTree

Namespace
ActivityPub.Types.Internal
Assembly
ActivityPub.Types.dll
internal static class ASNameTree
Inheritance
ASNameTree
Inherited Members

Constructors

ASNameTree()

Static constructor to ensure that all AS types have been statically initialized. The CLR will not automatically call static initializers in interfaces. https://stackoverflow.com/questions/5299737/static-constructor-on-a-net-interface-is-not-run https://learn.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.runtimehelpers.runclassconstructor?view=net-8.0

private static ASNameTree()

Fields

NameBaseMap

private static readonly Dictionary<string, string> NameBaseMap

Field Value

Dictionary<string, string>

NameDescendentsMap

private static readonly Dictionary<string, HashSet<string>> NameDescendentsMap

Field Value

Dictionary<string, HashSet<string>>

Methods

Add(string?, string?)

public static void Add(string? asTypeName, string? baseTypeName)

Parameters

asTypeName string
baseTypeName string

AddRecursive(string?, string)

private static void AddRecursive(string? asTypeName, string descendentTypeName)

Parameters

asTypeName string
descendentTypeName string

GetDerivedTypesFor(string?)

public static HashSet<string>? GetDerivedTypesFor(string? asTypeName)

Parameters

asTypeName string

Returns

HashSet<string>