Freigeben über


PrimitiveValueConversions Class

Definition

Mapping between builtin dotnet Types and power fx types. This works for primitives derived from PrimitiveValue<T>. To marshal complex types, use explicit construction methods or a TypeMarshaller.

public static class PrimitiveValueConversions
type PrimitiveValueConversions = class
Public Class PrimitiveValueConversions
Inheritance
PrimitiveValueConversions

Methods

Marshal(Object, FormulaType)
Marshal(Object, Type)

Marshal a primitive type. For complex types, use a TypeMarshallerCache or other explicit methods.

TryGetFormulaType(Type, FormulaType)

Get the dotnet to powerfx type mapping.

TryMarshal(Object, FormulaType, FormulaValue)

Marshal from a dotnet primitive to a given Power Fx type. Call ToObject() to go the other direction and get a dotnet object from a formulavalue.

Applies to