Show / Hide Table of Contents

    BooleanExtensions.ToInt(this bool? b, short falseValue = 0) Method

    .NET Standard 2.x

    Converts a nullable bool value to a short value.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

     public static short? ToInt(this bool? b, short falseValue = 0);
    

    Parameters

    b System.Boolean

    A bool you want to convert to a short.

    falseValue System.Int16

    The value which is returned if b is false.

    Returns

    System.Int16

    Returns 1 if b is true and returns falseValue if b is false.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon