Class MethodParameter
- Namespace
- RDCore.Forms.Model
- Assembly
- RDCore.Forms.dll
A parameter of a method.
public sealed record MethodParameter : IEquatable<MethodParameter>
- Inheritance
-
MethodParameter
- Implements
- Inherited Members
Constructors
MethodParameter(string, string, bool)
A parameter of a method.
public MethodParameter(string Name, string TypeName, bool IsOptional = false)
Parameters
NamestringThe parameter's name, as a named argument gives it, such as
Left.TypeNamestringThe declared type of the parameter, as VB names it, such as
Single: a program's argument is coerced to it before the method runs. AVariantparameter takes the argument as it is.IsOptionalboolWhether a call may leave the argument out.
Properties
IsOptional
Whether a call may leave the argument out.
public bool IsOptional { get; init; }
Property Value
Name
The parameter's name, as a named argument gives it, such as Left.
public string Name { get; init; }
Property Value
TypeName
The declared type of the parameter, as VB names it, such as Single: a program's argument is coerced to it before the method
runs. A Variant parameter takes the argument as it is.
public string TypeName { get; init; }