Files
mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaObjectCollection.cs
T
Gonzalo Paniagua Javier 6918735598 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
* System.Xml/XmlDocument.cs:
	* System.Xml/XmlTextWriter.cs:
	* System.Xml/XmlValidatingReader.cs:
	* System.Xml.Schema/XmlSchemaCollection.cs:
	* System.Xml.Schema/XmlSchemaException.cs:
	* System.Xml.Schema/XmlSchemaObjectCollection.cs:
	* System.Xml.Serialization/SoapTypeAttribute.cs:
	* System.Xml.Serialization/XmlAttributes.cs:
	* System.Xml.Serialization/XmlMapping.cs:
	* System.Xml.Serialization/XmlReflectionImporter.cs:
	* System.Xml.Serialization/XmlSerializer.cs:
	* System.Xml.Serialization/XmlTextAttribute.cs:
	* System.Xml.Xsl/XslTransform.cs: misc. fixed and implementation.

	* System.Xml.Serialization/SchemaTypes.cs: New file.
	* System.Xml.Serialization/TypeData.cs: New file.
	* System.Xml.Serialization/TypeTranslator.cs: New file.

svn path=/trunk/mcs/; revision=7574
2002-09-18 05:21:10 +00:00

89 lines
1.7 KiB
C#
Executable File

// Author: Dwivedi, Ajay kumar
// [email protected]
using System;
using System.Collections;
namespace System.Xml.Schema
{
/// <summary>
/// Summary description for XmlSchemaObjectCollection.
/// </summary>
public class XmlSchemaObjectCollection : System.Collections.CollectionBase
{
private XmlSchemaObject parent;
public XmlSchemaObjectCollection()
{
}
public XmlSchemaObjectCollection(XmlSchemaObject parent)
{
this.parent = parent;
}
// Properties
public virtual XmlSchemaObject this[ int index ]
{
get
{
return (XmlSchemaObject) this.List[index];
}
set
{
this.List[index] = value;
}
}
// Methods
public int Add(XmlSchemaObject item)
{
return this.List.Add(item);
}
public bool Contains(XmlSchemaObject item)
{
return this.List.Contains(item);
}
public void CopyTo(XmlSchemaObject[] array, int index)
{
this.List.CopyTo(array,index);
}
public new XmlSchemaObjectEnumerator GetEnumerator ()
{
return new XmlSchemaObjectEnumerator(this.List);
}
public int IndexOf(XmlSchemaObject item)
{
return this.List.IndexOf(item);
}
public void Insert(int index, XmlSchemaObject item)
{
this.List.Insert(index, item);
}
protected override void OnClear()
{
}
protected override void OnInsert(int index,object item)
{
}
protected override void OnRemove(int index,object item)
{
}
protected override void OnSet(int index,object oldValue,object newValue)
{
}
public void Remove(XmlSchemaObject item)
{
this.List.Remove(item);
}
}
}