Class RDCoreReference
A library or project a project references (RD-VBAL §2.2.3.2).
public sealed record RDCoreReference : IEquatable<RDCoreReference>
- Inheritance
-
RDCoreReference
- Implements
- Inherited Members
Fields
StandardLibraryGuid
The identifier of the type library of VBA, the standard library, by which a VB6 project references it.
public static readonly Guid StandardLibraryGuid
Field Value
StandardLibraryName
The name of the standard library, which every project has (RD-VBAL §6.0).
public const string StandardLibraryName = "VBA"
Field Value
Properties
AbsolutePath
Where the referenced library is, when the reference has a file; null otherwise.
public string? AbsolutePath { get; init; }
Property Value
ExtensionData
The members of the reference this model does not know, as they were read, which are written back (ExtensionData).
[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; init; }
Property Value
Guid
The identifier of the referenced type library, for a reference to one; null otherwise.
public Guid? Guid { get; init; }
Property Value
- Guid?
IsStandardLibrary
Whether the reference is to the standard library (VBA), by its name or the identifier of its type library: the platform's own library, which
every project has and no project file lists (References).
[JsonIgnore]
public bool IsStandardLibrary { get; }
Property Value
IsUnremovable
Whether the reference cannot be removed from the project.
public bool IsUnremovable { get; init; }
Property Value
Major
The major version of the referenced type library; null when the reference does not say.
public int? Major { get; init; }
Property Value
- int?
Minor
The minor version of the referenced type library; null when the reference does not say.
public int? Minor { get; init; }
Property Value
- int?
Name
The referenced library's or project's name, which identifies the reference.
public string Name { get; init; }
Property Value
TypeLibInfoPath
Where the description of the referenced library's members is, when it is a file of its own; null otherwise.
public string? TypeLibInfoPath { get; init; }
Property Value
Methods
Equals(RDCoreReference?)
Whether other references the library or project of the same name, whatever the case of it: a name is one reference of a project, as
VBA names are not case sensitive.
public bool Equals(RDCoreReference? other)
Parameters
otherRDCoreReferenceThe reference to compare with.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.