Show / Hide Table of Contents

Method Populate

| Edit this page View Source

Populate<T>(T[], T)

Populate an array with a default value
Declaration
public static T[] Populate<T>(this T[] arr, T value)
Parameters
Type Name Description
T[] arr Array instance
T value Default value
Returns
Type Description
T[] Reference to the array instance
Type Parameters
Name Description
T Array value type
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾