Пример #1
0
 public void Sort()
 {
     object[] array = new object[this.writer.attributeCount];
     for (int i = 0; i < array.Length; i++)
     {
         array[i] = i;
     }
     Array.Sort(array, this);
     XmlCanonicalWriter.Attribute[] attributeArray = new XmlCanonicalWriter.Attribute[this.writer.attributes.Length];
     for (int j = 0; j < array.Length; j++)
     {
         attributeArray[j] = this.writer.attributes[(int)array[j]];
     }
     this.writer.attributes = attributeArray;
 }
 public void Sort()
 {
     object[] array = new object[this.writer.attributeCount];
     for (int i = 0; i < array.Length; i++)
     {
         array[i] = i;
     }
     Array.Sort(array, this);
     XmlCanonicalWriter.Attribute[] attributeArray = new XmlCanonicalWriter.Attribute[this.writer.attributes.Length];
     for (int j = 0; j < array.Length; j++)
     {
         attributeArray[j] = this.writer.attributes[(int) array[j]];
     }
     this.writer.attributes = attributeArray;
 }