RuntimeHelpers.InitializeArray Method (Array, RuntimeFieldHandle)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides a fast way to initialize an array from data that is stored in a module.

Namespace:   System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public static void InitializeArray(
	Array array,
	RuntimeFieldHandle fldHandle
)

Parameters

array
Type: System.Array

The array to be initialized.

fldHandle
Type: System.RuntimeFieldHandle

A field handle that specifies the location of the data used to initialize the array.

This method is used by compilers.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: