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
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
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
namestringtypeTypehasDefaultValuebooldefaultValueobjectisOutboolisRefboolisVarArgsbooltypeRestrictionType
Properties
DefaultValue
public object DefaultValue { get; }
Property Value
HasBeenRestricted
public bool HasBeenRestricted { get; }
Property Value
HasDefaultValue
public bool HasDefaultValue { get; }
Property Value
IsOut
public bool IsOut { get; }
Property Value
IsRef
public bool IsRef { get; }
Property Value
IsVarArgs
public bool IsVarArgs { get; }
Property Value
Name
public string Name { get; }
Property Value
OriginalType
public Type OriginalType { get; }
Property Value
Type
public Type Type { get; }
Property Value
Methods
PrepareForWiring(Table)
public void PrepareForWiring(Table table)
Parameters
tableTable
RestrictType(Type)
public void RestrictType(Type type)
Parameters
typeType
ToString()
public override string ToString()