logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ParseUtils.Bool

    Utility class for parsing boolean values

    Inheritance
    object
    ParseUtils.Bool
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Utils
    Assembly: Serenity.Shared.dll
    Syntax
    public static class ParseUtils.Bool

    Methods

    Parse(string)

    Parse a string value into a boolean

    Declaration
    public static bool Parse(string value)
    Parameters
    Type Name Description
    string value

    The string value to parse

    Returns
    Type Description
    bool

    The parsed boolean value

    ToString(bool, BoolStringsTypes)

    Convert a boolean value to its string representation based on the specified type

    Declaration
    public static string ToString(bool value, ParseUtils.Bool.BoolStringsTypes type = BoolStringsTypes.Bool)
    Parameters
    Type Name Description
    bool value

    The boolean value to convert

    ParseUtils.Bool.BoolStringsTypes type

    The type of string representation to use (default is Bool)

    Returns
    Type Description
    string

    The string representation of the boolean value

    In this article
    © 2026 Serenity. All Rights Reserved