NFive API Reference

NFive API Reference

    Show / Hide Table of Contents

    Class Yaml

    Yaml serialization helpers.

    Inheritance
    Object
    Yaml
    Namespace: NFive.SDK.Plugins.Configuration
    Assembly: NFive.SDK.Plugins.dll
    Syntax
    public static class Yaml

    Methods

    | Improve this Doc View Source

    Deserialize(String, Type)

    Deserializes the specified Yaml.

    Declaration
    public static object Deserialize(string yml, Type type)
    Parameters
    Type Name Description
    String yml

    The Yaml string.

    Type type

    The type to deserialize as.

    Returns
    Type Description
    Object

    The deserialized object.

    | Improve this Doc View Source

    Deserialize<T>(String)

    Deserializes the specified Yaml.

    Declaration
    public static T Deserialize<T>(string yml)
    Parameters
    Type Name Description
    String yml

    The Yaml string.

    Returns
    Type Description
    T

    The deserialized object.

    Type Parameters
    Name Description
    T

    The type to deserialize as.

    | Improve this Doc View Source

    Serialize(Object)

    Serializes the specified object.

    Declaration
    public static string Serialize(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to serialize.

    Returns
    Type Description
    String

    The Yaml string.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2019 NFive