My ArrayHelper class.

Previously I’ve posted a few Helper Classes . This post describes my ArrayHelper class.

    using System;
    using System.Collections;
    using System.Runtime.CompilerServices;
    using System.Xml;
 
    public static class ArrayHelper
    {
            public static void FillBytesRange(Array array,int indexStart,int indexEnd,      byte value)
        {
            for (int i = indexStart; i <= indexEnd; i++)
            {
                Buffer.SetByte(array, i, value);
            }
        }
    }//end of class ArrayHelper
 

 

Advertisements