Search Results for

    Show / Hide Table of Contents
    View Source

    Class IntExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class IntExtensions

    Methods

    View Source

    Times(Int32, Action<Int32>)

    Does something 'x' amount of times.

    Declaration
    public static void Times(this int n, Action<int> action)
    Parameters
    Type Name Description
    System.Int32 n

    Number of times to execute the action.

    Action<System.Int32> action

    The action to execute.

    View Source

    ToGuid(Int32)

    Creates a Guid based on an integer value.

    Declaration
    public static Guid ToGuid(this int value)
    Parameters
    Type Name Description
    System.Int32 value

    The System.Int32 value to convert.

    Returns
    Type Description
    Guid

    The converted .

    View Source

    TryParseFromGuid(Guid, out Nullable<Int32>)

    Restores a GUID previously created from an integer value using ToGuid(Int32).

    Declaration
    public static bool TryParseFromGuid(Guid value, out int? result)
    Parameters
    Type Name Description
    Guid value

    The value to convert.

    System.Nullable<System.Int32> result

    The converted System.Int32.

    Returns
    Type Description
    System.Boolean

    True if the System.Int32 value could be created, otherwise false.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX