JsonUtilitySerializeT Method
Serializes the specified instance.
Namespace: Scanjour.Workflow4.BaseAssembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 24.4.0.0 (24.4.0.0)
public static string Serialize<T>(
T instance,
bool includeTypeInformation = false
)
Public Shared Function Serialize(Of T) (
instance As T,
Optional includeTypeInformation As Boolean = false
) As String
public:
generic<typename T>
static String^ Serialize(
T instance,
bool includeTypeInformation = false
)
static member Serialize :
instance : 'T *
?includeTypeInformation : bool
(* Defaults:
let _includeTypeInformation = defaultArg includeTypeInformation false
*)
-> string
- instance T
- The instance.
- includeTypeInformation Boolean (Optional)
- if true then '$type' property is embeded into resulting json. The '$type' property contains full type information of serialized property.
- T
- Type of instance to deserialize.
StringJSON representation of the instance.