logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityYamlUtils

    Utility class for parsing YAML content

    Inheritance
    object
    UnityYamlUtils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Global.Infrastructure.Utils
    Assembly: Serenity.UnityGlobal.Infrastructure.dll
    Syntax
    public static class UnityYamlUtils

    Methods

    Escape(string)

    Escape special characters in a string

    Declaration
    public static string Escape(string value)
    Parameters
    Type Name Description
    string value

    The string to escape

    Returns
    Type Description
    string

    The escaped string

    GetYamlStream(string)

    Parse a YAML string into a YamlStream object

    Declaration
    public static YamlStream GetYamlStream(string yamlString)
    Parameters
    Type Name Description
    string yamlString

    The YAML string to parse

    Returns
    Type Description
    YamlStream

    The parsed YamlStream object

    Unescape(string)

    Unescape special characters in a string

    Declaration
    public static string Unescape(string value)
    Parameters
    Type Name Description
    string value

    The string to unescape

    Returns
    Type Description
    string

    The unescaped string

    In this article
    © 2026 Serenity. All Rights Reserved