Table of Contents

Class ParameterDescriptor

Namespace
MoonSharp.Interpreter.Interop.BasicDescriptors
Assembly
Assembly-CSharp.dll
public sealed class ParameterDescriptor : IWireableDescriptor
Inheritance
ParameterDescriptor
Implements
Inherited Members
Extension Methods

Constructors

ParameterDescriptor(ParameterInfo)

public ParameterDescriptor(ParameterInfo pi)

Parameters

pi ParameterInfo

ParameterDescriptor(string, Type, bool, object, bool, bool, bool)

public ParameterDescriptor(string name, Type type, bool hasDefaultValue = false, object defaultValue = null, bool isOut = false, bool isRef = false, bool isVarArgs = false)

Parameters

name string
type Type
hasDefaultValue bool
defaultValue object
isOut bool
isRef bool
isVarArgs bool

ParameterDescriptor(string, Type, bool, object, bool, bool, bool, Type)

public ParameterDescriptor(string name, Type type, bool hasDefaultValue, object defaultValue, bool isOut, bool isRef, bool isVarArgs, Type typeRestriction)

Parameters

name string
type Type
hasDefaultValue bool
defaultValue object
isOut bool
isRef bool
isVarArgs bool
typeRestriction Type

Properties

DefaultValue

public object DefaultValue { get; }

Property Value

object

HasBeenRestricted

public bool HasBeenRestricted { get; }

Property Value

bool

HasDefaultValue

public bool HasDefaultValue { get; }

Property Value

bool

IsOut

public bool IsOut { get; }

Property Value

bool

IsRef

public bool IsRef { get; }

Property Value

bool

IsVarArgs

public bool IsVarArgs { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

OriginalType

public Type OriginalType { get; }

Property Value

Type

Type

public Type Type { get; }

Property Value

Type

Methods

PrepareForWiring(Table)

public void PrepareForWiring(Table table)

Parameters

table Table

RestrictType(Type)

public void RestrictType(Type type)

Parameters

type Type

ToString()

public override string ToString()

Returns

string