Search Results for

    Show / Hide Table of Contents

    Class SafeConvert

    Inheritance
    object
    SafeConvert
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    public static class SafeConvert

    Methods

    | Edit this page View Source

    TryConvert<T>(string, out T)

    • Safely converts a string to T without throwing.
    • Supports nullable types, enums, bool, and primitive numeric types.
    Declaration
    public static bool TryConvert<T>(string input, out T converted)
    Parameters
    Type Name Description
    string input
    T converted
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation