Table of Contents

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

Name string

The parameter's name, as a named argument gives it, such as Left.

TypeName string

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.

IsOptional bool

Whether a call may leave the argument out.

Properties

IsOptional

Whether a call may leave the argument out.

public bool IsOptional { get; init; }

Property Value

bool

Name

The parameter's name, as a named argument gives it, such as Left.

public string Name { get; init; }

Property Value

string

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; }

Property Value

string