Class CustomConvertersCollection
- Namespace
- MoonSharp.Interpreter.Interop
- Assembly
- Assembly-CSharp.dll
public class CustomConvertersCollection
- Inheritance
-
CustomConvertersCollection
- Inherited Members
-
- Extension Methods
-
Methods
Clear()
GetClrToScriptCustomConversion(Type)
public Func<Script, object, DynValue> GetClrToScriptCustomConversion(Type clrDataType)
Parameters
clrDataType Type
Returns
- Func<Script, object, DynValue>
GetScriptToClrCustomConversion(DataType, Type)
public Func<DynValue, object> GetScriptToClrCustomConversion(DataType scriptDataType, Type clrDataType)
Parameters
scriptDataType DataType
clrDataType Type
Returns
- Func<DynValue, object>
SetClrToScriptCustomConversion(Type, Func<Script, object, DynValue>)
public void SetClrToScriptCustomConversion(Type clrDataType, Func<Script, object, DynValue> converter = null)
Parameters
clrDataType Type
converter Func<Script, object, DynValue>
SetClrToScriptCustomConversion(Type, Func<object, DynValue>)
[Obsolete("This method is deprecated. Use the overloads accepting functions with a Script argument.")]
public void SetClrToScriptCustomConversion(Type clrDataType, Func<object, DynValue> converter = null)
Parameters
clrDataType Type
converter Func<object, DynValue>
SetClrToScriptCustomConversion<T>(Func<Script, T, DynValue>)
public void SetClrToScriptCustomConversion<T>(Func<Script, T, DynValue> converter = null)
Parameters
converter Func<Script, T, DynValue>
Type Parameters
T
SetClrToScriptCustomConversion<T>(Func<T, DynValue>)
[Obsolete("This method is deprecated. Use the overloads accepting functions with a Script argument.")]
public void SetClrToScriptCustomConversion<T>(Func<T, DynValue> converter = null)
Parameters
converter Func<T, DynValue>
Type Parameters
T
SetScriptToClrCustomConversion(DataType, Type, Func<DynValue, object>)
public void SetScriptToClrCustomConversion(DataType scriptDataType, Type clrDataType, Func<DynValue, object> converter = null)
Parameters
scriptDataType DataType
clrDataType Type
converter Func<DynValue, object>