NWH Common
Search Results for

    Show / Hide Table of Contents

    Class ArrayExtensions

    Extension methods for array manipulation.

    Inheritance
    object
    ArrayExtensions
    Namespace: NWH.Common.Utility
    Assembly: NWH.Common.dll
    Syntax
    public static class ArrayExtensions

    Methods

    | Edit this page View Source

    Fill<T>(T[], params T[])

    Efficiently fills an array by repeating a pattern of values. Uses doubling strategy for performance.

    Declaration
    public static void Fill<T>(this T[] destinationArray, params T[] value)
    Parameters
    Type Name Description
    T[] destinationArray

    Array to fill.

    T[] value

    Pattern of values to repeat throughout the array.

    Type Parameters
    Name Description
    T

    Type of array elements.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics