System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray C# (CSharp) Method

InitializeArray() private method

private InitializeArray ( Array array, RuntimeFieldHandle handle ) : void
array Array
handle RuntimeFieldHandle
return void
        public static extern void InitializeArray(Array array, RuntimeFieldHandle handle);

Usage Example

コード例 #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