Struct NativeCallPlatforms
The platforms of a call to a procedure declared by a Declare statement (MS-VBAL §5.2.3.5): where the call is compiled, and where
the procedure it calls is.
public readonly record struct NativeCallPlatforms : IEquatable<NativeCallPlatforms>
- Implements
- Inherited Members
Remarks
A call that is compiled on a platform its procedure is not declared on refers to nothing there. One compiled on every platform, of a procedure that one statement declares on every platform, calls that statement's library whatever the platform, and no library is on every platform; of a procedure that several statements declare, each on some platforms, it calls on each platform the library of that platform's statement.
Constructors
NativeCallPlatforms(CompiledPlatforms, CompiledPlatforms, ImmutableArray<CompiledPlatforms>)
The platforms of a call to a procedure declared by a Declare statement (MS-VBAL §5.2.3.5): where the call is compiled, and where
the procedure it calls is.
public NativeCallPlatforms(CompiledPlatforms Call, CompiledPlatforms Declared, ImmutableArray<CompiledPlatforms> DeclaredByStatement)
Parameters
CallCompiledPlatformsThe platforms the call is compiled on: those that make live the
#Ifbranch the call is written in.DeclaredCompiledPlatformsThe platforms the procedure is declared on (CompiledOn): the union of
DeclaredByStatement.DeclaredByStatementImmutableArray<CompiledPlatforms>The platforms each
Declarestatement of the procedure is compiled on, in the order they are written (StatementsCompiledOn).
Remarks
A call that is compiled on a platform its procedure is not declared on refers to nothing there. One compiled on every platform, of a procedure that one statement declares on every platform, calls that statement's library whatever the platform, and no library is on every platform; of a procedure that several statements declare, each on some platforms, it calls on each platform the library of that platform's statement.
Properties
Call
The platforms the call is compiled on: those that make live the #If branch the call is written in.
public CompiledPlatforms Call { get; init; }
Property Value
Declared
The platforms the procedure is declared on (CompiledOn): the union of DeclaredByStatement.
public CompiledPlatforms Declared { get; init; }
Property Value
DeclaredByStatement
The platforms each Declare statement of the procedure is compiled on, in the order they are written: empty when none is given.
public ImmutableArray<CompiledPlatforms> DeclaredByStatement { get; init; }
Property Value
Methods
Equals(NativeCallPlatforms)
Whether other states the same platforms: the same call, the same union, and the same platforms for each statement, in order.
public bool Equals(NativeCallPlatforms other)
Parameters
otherNativeCallPlatformsThe platforms of a call.
Returns
GetHashCode()
A hash of the call's platforms, the union's, and each statement's, as Equals(NativeCallPlatforms) compares them.
public override int GetHashCode()