JsonExtensionsSerializeT Method |
Serializes the specified object to a JSON string.
Namespace:
RiakClient.Extensions
Assembly:
RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax public static string Serialize<T>(
this T obj
)
where T : class
[<ExtensionAttribute>]
static member Serialize :
obj : 'T -> string when 'T : not struct
Parameters
- obj
- Type: T
The object to serialize.
Type Parameters
- T
- A reference type.
Return Value
Type:
StringThe object serialized as a JSON string.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
See Also