Exemple #1
0
 static public void GetEndingIndex(this IArrayDefinition array, int[] indexes)
 {
     for (int i = 0; i < array.Rank; i++)
     {
         indexes[i] = array.GetUpperBound(i);
     }
 }
Exemple #2
0
        static public bool ContainsIndex(this IArrayDefinition array, params int[] indexes)
        {
            for (int r = 0; r < array.Rank; r++)
            {
                if (indexes[r] < array.GetLowerBound(r) || indexes[r] > array.GetUpperBound(r))
                {
                    return(false);
                }
            }

            return(true);
        }