[This is preliminary documentation and is subject to change.]
Try to convert .NET native object type to corresponding Erlang term of given type.
Throw exception if conversion is not possible
Namespace: NFX.ErlangAssembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
public static IErlObject ToErlObject(
this Object o,
ErlTypeOrder etp,
bool strict = true
)
public static IErlObject ToErlObject(
this Object o,
ErlTypeOrder etp,
bool strict = true
)
<ExtensionAttribute>
Public Shared Function ToErlObject (
o As Object,
etp As ErlTypeOrder,
Optional strict As Boolean = true
) As IErlObject
<ExtensionAttribute>
Public Shared Function ToErlObject (
o As Object,
etp As ErlTypeOrder,
Optional strict As Boolean = true
) As IErlObject
public:
[ExtensionAttribute]
static IErlObject^ ToErlObject(
Object^ o,
ErlTypeOrder etp,
bool strict = true
)
public:
[ExtensionAttribute]
static IErlObject^ ToErlObject(
Object^ o,
ErlTypeOrder etp,
bool strict = true
)
static member ToErlObject :
o : Object *
etp : ErlTypeOrder *
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> IErlObject
static member ToErlObject :
o : Object *
etp : ErlTypeOrder *
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> IErlObject
Return Value
Type:
IErlObjectUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).