Class NativeFunction.NativeParameter
- Namespace
- StepLang.Framework
- Assembly
- StepLang.dll
protected record NativeFunction.NativeParameter : IEquatable<NativeFunction.NativeParameter>
- Inheritance
-
NativeFunction.NativeParameter
- Implements
-
- Inherited Members
-
Constructors
NativeParameter(NativeParameter)
protected NativeParameter(NativeFunction.NativeParameter original)
Parameters
original
NativeFunction.NativeParameter
NativeParameter(IReadOnlyList<ResultType>, string, ExpressionNode?)
public NativeParameter(IReadOnlyList<ResultType> Types, string Identifier, ExpressionNode? DefaultValue = null)
Parameters
Types
IReadOnlyList<ResultType>
Identifier
string
DefaultValue
ExpressionNode
Properties
DefaultValue
public ExpressionNode? DefaultValue { get; init; }
Property Value
- ExpressionNode
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
- Type
Identifier
public string Identifier { get; init; }
Property Value
- string
Types
public IReadOnlyList<ResultType> Types { get; init; }
Property Value
- IReadOnlyList<ResultType>
Methods
Deconstruct(out IReadOnlyList<ResultType>, out string, out ExpressionNode?)
public void Deconstruct(out IReadOnlyList<ResultType> Types, out string Identifier, out ExpressionNode? DefaultValue)
Parameters
Types
IReadOnlyList<ResultType>
Identifier
string
DefaultValue
ExpressionNode
Equals(NativeParameter?)
public virtual bool Equals(NativeFunction.NativeParameter? other)
Parameters
other
NativeFunction.NativeParameter
Returns
- bool
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
- bool
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(NativeParameter?, NativeParameter?)
public static bool operator ==(NativeFunction.NativeParameter? left, NativeFunction.NativeParameter? right)
Parameters
left
NativeFunction.NativeParameter
right
NativeFunction.NativeParameter
Returns
- bool
operator !=(NativeParameter?, NativeParameter?)
public static bool operator !=(NativeFunction.NativeParameter? left, NativeFunction.NativeParameter? right)
Parameters
left
NativeFunction.NativeParameter
right
NativeFunction.NativeParameter
Returns
- bool