Class ClassMemberFact
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
NamestringThe name it is declared with: that of the first of its accessors the class declares, for a property.
ClassificationExpressionClassificationWhat it is: a Variable for a
Publicvariable, a Property, or a method, a Function or a Subroutine.AccessorsPropertyAccessorsThe accessors the class declares for it, for a property; None for any other member.
ParametersintHow many parameters it declares, besides the value a
Property LetorProperty Setis given (MS-VBAL §5.3.1.7): those of itsProperty Get, for a property that has one. 0 for a variable.TypeKindDeclaredTypeKind?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 aSub, and for a type that did not resolve.IsArrayboolWhether its declared type is an array.
TypeNamestringThe name of its declared type, or of its elements' type for an array:
Long,Variant,Customer,Dictionary. null exactly whenTypeKindis.
Properties
Accessors
The accessors the class declares for it, for a property; None for any other member.
public PropertyAccessors Accessors { get; init; }
Property Value
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
IsArray
Whether its declared type is an array.
public bool IsArray { get; init; }
Property Value
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
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
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
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
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
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
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
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; }