[This is preliminary documentation and is subject to change.]
Tries to convert an Erlang term as specified native 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 Object AsType(
this IErlObject val,
Type t
)
public static Object AsType(
this IErlObject val,
Type t
)
<ExtensionAttribute>
Public Shared Function AsType (
val As IErlObject,
t As Type
) As Object
<ExtensionAttribute>
Public Shared Function AsType (
val As IErlObject,
t As Type
) As Object
public:
[ExtensionAttribute]
static Object^ AsType(
IErlObject^ val,
Type^ t
)
public:
[ExtensionAttribute]
static Object^ AsType(
IErlObject^ val,
Type^ t
)
static member AsType :
val : IErlObject *
t : Type -> Object
static member AsType :
val : IErlObject *
t : Type -> Object
Return Value
Type:
ObjectUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IErlObject. 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).