Table of Contents

Class ClassMemberFact

Namespace
RDCore.SDK.Semantics
Assembly
RDCore.SDK.dll

A member of the public interface of a class of the workspace (Members): a variable, a property, or a method.

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

Constructors

ClassMemberFact(string, ExpressionClassification, PropertyAccessors, int, DeclaredTypeKind?, bool, string?)

A member of the public interface of a class of the workspace (Members): a variable, a property, or a method.

public ClassMemberFact(string Name, ExpressionClassification Classification, PropertyAccessors Accessors, int Parameters, DeclaredTypeKind? TypeKind, bool IsArray, string? TypeName)

Parameters

Name string

The name it is declared with: that of the first of its accessors the class declares, for a property.

Classification ExpressionClassification

What it is: a Variable for a Public variable, a Property, or a method, a Function or a Subroutine.

Accessors PropertyAccessors

The accessors the class declares for it, for a property; None for any other member.

Parameters int

How many parameters it declares, besides the value a Property Let or Property Set is given (MS-VBAL §5.3.1.7): those of its Property Get, for a property that has one. 0 for a variable.

TypeKind DeclaredTypeKind?

The kind of its declared type, or of its elements' type for an array (Of(VBType?)): a variable's, what a function returns, and what a property is read as, or given for a property with no Get. null for a Sub, and for a type that did not resolve.

IsArray bool

Whether its declared type is an array.

TypeName string

The name of its declared type, or of its elements' type for an array: Long, Variant, Customer, Dictionary. null exactly when TypeKind is.

Properties

Accessors

The accessors the class declares for it, for a property; None for any other member.

public PropertyAccessors Accessors { get; init; }

Property Value

PropertyAccessors

Classification

What it is: a Variable for a Public variable, a Property, or a method, a Function or a Subroutine.

public ExpressionClassification Classification { get; init; }

Property Value

ExpressionClassification

IsArray

Whether its declared type is an array.

public bool IsArray { get; init; }

Property Value

bool

IsGivenAValueFromJson

Whether a key of a JSON object gives it a value, as a host fills an object of its class from JSON (JsonSchemaSet): it is a variable, or a property whose Property Let or Property Set takes only the value.

[JsonIgnore]
public bool IsGivenAValueFromJson { get; }

Property Value

bool

IsWrittenToJson

Whether the JSON of an object of its class has it, as a host converts an object to JSON (JsonSchemaSet): it is a variable, or a property whose Property Get takes no argument.

[JsonIgnore]
public bool IsWrittenToJson { get; }

Property Value

bool

Name

The name it is declared with: that of the first of its accessors the class declares, for a property.

public string Name { get; init; }

Property Value

string

Parameters

How many parameters it declares, besides the value a Property Let or Property Set is given (MS-VBAL §5.3.1.7): those of its Property Get, for a property that has one. 0 for a variable.

public int Parameters { get; init; }

Property Value

int

TypeClass

The address of the class module of the workspace that its declared type names, or its elements' type for an array: a DeclaredClassFact of the same declaration describes that class. null for any other type.

public Uri? TypeClass { get; init; }

Property Value

Uri

TypeKind

The kind of its declared type, or of its elements' type for an array (Of(VBType?)): a variable's, what a function returns, and what a property is read as, or given for a property with no Get. null for a Sub, and for a type that did not resolve.

public DeclaredTypeKind? TypeKind { get; init; }

Property Value

DeclaredTypeKind?

TypeLibrary

The library that declares the class its declared type names, or its elements' type for an array: Scripting for a Dictionary. null for a class of the workspace, and for any type that is not a class.

public string? TypeLibrary { get; init; }

Property Value

string

TypeName

The name of its declared type, or of its elements' type for an array: Long, Variant, Customer, Dictionary. null exactly when TypeKind is.

public string? TypeName { get; init; }

Property Value

string