logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ParseUtils.Int

    Utility class for parsing integer values

    Inheritance
    object
    ParseUtils.Int
    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.Int

    Methods

    Parse(float)

    Parse a float value into an integer by truncating the decimal part

    Declaration
    public static int Parse(float value)
    Parameters
    Type Name Description
    float value

    The float value to parse

    Returns
    Type Description
    int

    The parsed integer value

    Parse(string)

    Parse a string value into an integer

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

    The string value to parse

    Returns
    Type Description
    int

    The parsed integer value

    ToString(int)

    Convert an integer value to its string representation

    Declaration
    public static string ToString(int value)
    Parameters
    Type Name Description
    int value

    The integer value to convert

    Returns
    Type Description
    string

    The string representation of the integer value

    In this article
    © 2026 Serenity. All Rights Reserved