NFive API Reference

NFive API Reference

    Show / Hide Table of Contents

    Class VersionConverter

    Yaml converter for type.

    Inheritance
    Object
    VersionConverter
    Namespace: NFive.SDK.Plugins.Configuration
    Assembly: NFive.SDK.Plugins.dll
    Syntax
    public class VersionConverter : IYamlTypeConverter

    Methods

    | Improve this Doc View Source

    Accepts(Type)

    Gets a value indicating whether the current converter supports converting the specified type.

    Declaration
    public bool Accepts(Type type)
    Parameters
    Type Name Description
    Type type

    The type to check.

    Returns
    Type Description
    Boolean

    true if the specified Type can be converted; otherwise, false.

    | Improve this Doc View Source

    ReadYaml(IParser, Type)

    Reads an object's state from a Yaml parser.

    Declaration
    public object ReadYaml(IParser parser, Type type)
    Parameters
    Type Name Description
    IParser parser
    Type type
    Returns
    Type Description
    Object

    Deserialized object.

    | Improve this Doc View Source

    WriteYaml(IEmitter, Object, Type)

    Writes the specified object's state to a Yaml emitter.

    Declaration
    public void WriteYaml(IEmitter emitter, object value, Type type)
    Parameters
    Type Name Description
    IEmitter emitter
    Object value
    Type type
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2019 NFive