Search Results for

    Show / Hide Table of Contents

    Class StringAssistantExtensions

    Contains methods for string manipulation.

    Inheritance
    System.Object
    StringAssistantExtensions
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public static class StringAssistantExtensions : object

    Methods

    IsHexString(String)

    Determines whether the input string consists entirely of valid hexadecimal characters.

    Declaration
    public static bool IsHexString(string input)
    Parameters
    Type Name Description
    System.String input

    The string to check for hexadecimal validity.

    Returns
    Type Description
    System.Boolean

    true if the input string contains only valid hexadecimal characters (0-9, a-f, A-F); otherwise, false.

    Remarks

    This method checks each character of the input string individually. It returns false immediately upon encountering any non-hexadecimal character. An empty string is considered a valid hexadecimal string and will return true.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.25.0