예제 #1
0
        string Suffix()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("[");
            for (int i = 0; i < m_dimensions.Count; i++)
            {
                ArrayDimension dim  = m_dimensions [i];
                string         rank = dim.ToString();
                if (i < m_dimensions.Count - 1)
                {
                    sb.Append(",");
                }
                if (rank.Length > 0)
                {
                    sb.Append(" ");
                    sb.Append(rank);
                }
            }
            sb.Append("]");
            return(sb.ToString());
        }
 public void Remove(ArrayDimension value)
 {
     List.Remove(value);
 }
 public void Insert(int index, ArrayDimension value)
 {
     List.Insert(index, value);
 }
 public int IndexOf(ArrayDimension value)
 {
     return(List.IndexOf(value));
 }
 public bool Contains(ArrayDimension value)
 {
     return(List.Contains(value));
 }
 public void Add(ArrayDimension value)
 {
     List.Add(value);
 }