Click here to Skip to main content
15,897,371 members
Articles / Programming Languages / XSLT

XmlXsdDocument

Rate me:
Please Sign up or sign in to vote.
4.56/5 (4 votes)
27 Oct 200610 min read 24.5K   568   17  
This article explains the applcation of the XmlXsdDocument class.
using System;

namespace Puma.Collections
{
	public class Shred : IShred
	{
		public Shred(string Name, ShredCollector Container) 
		{
			this._name = Name;

			this.Container = Container;
		}

		public readonly ShredCollector Container;

		private readonly string _name;

		private readonly System.Collections.ArrayList _sysArrayList = new System.Collections.ArrayList();

		#region IEnumerable Members

		public System.Collections.IEnumerator GetEnumerator()
		{
			// TODO:  Add Shred.GetEnumerator implementation
			return _sysArrayList.GetEnumerator();
		}

		#endregion

		#region IShred Members

		public virtual void Insert(int Index, object Object)
		{
			_sysArrayList.Insert(Index != -1 ? Index : Count, Object);
		}		

		public virtual void Remove(int Index)
		{
			_sysArrayList.RemoveAt(Index);
		}

        public virtual bool IsCanInsert { get { return true; } }

        public virtual bool IsCanRemove { get { return true; } }

		#endregion

		#region IShredReadOnly Members

		public string Name
		{
			get
			{
				return _name;
			}
		}

		public object GetItem(int Index)
		{
			return _sysArrayList[Index];
		}

        public int IndexOf(object Item)
        {
            return _sysArrayList.IndexOf(Item);
        }

		public int Count 
		{
			get
			{
				return _sysArrayList.Count;
			}
		}

		public System.Collections.ICollection GetCollection()
		{
			return _sysArrayList;
		}


		#endregion
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions