System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray C# (CSharp) Méthode

InitializeArray() private méthode

private InitializeArray ( Array array, RuntimeFieldHandle handle ) : void
array Array
handle RuntimeFieldHandle
Résultat void
        public static extern void InitializeArray(Array array, RuntimeFieldHandle handle);

Usage Example

Exemple #1
0
 /// <summary>Provides a fast way to initialize an array from data stored in a module.</summary>
 /// <param name="array">The array to be initialized. </param>
 /// <param name="fldHandle">A <see cref="T:System.RuntimeFieldHandle" /> specifying the location of the data used to initialize the array. </param>
 public static void InitializeArray(Array array, RuntimeFieldHandle fldHandle)
 {
     if (array == null || fldHandle.Value == IntPtr.Zero)
     {
         throw new ArgumentNullException();
     }
     RuntimeHelpers.InitializeArray(array, fldHandle.Value);
 }
All Usage Examples Of System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray