C# Class ReferencePathCollection, gert

Inheritance: CollectionBase, ICustomTypeDescriptor
Show file Open project: mono/gert Class Usage Examples

Public Methods

Method Description
Add ( ReferencePath, refPath ) : void

Adds the specified ReferencePath object to the collection.

If the path in refPath matches one already existing in the collection, the operation is silently ignored.

AddRange ( ICollection c ) : void

Adds the elements of an ICollection to the end of the collection.

Contains ( string path ) : bool

Determines whether the collection contains a specified path.

Path comparison is case-insensitive.

ReadXml ( XmlReader reader ) : void

Loads reference paths from an XMLReader.

Remove ( ReferencePath, refPath ) : void

Removes the first occurence of a specific ReferencePath from the collection.

Elements that follow the removed element move up to occupy the vacated spot and the indexes of the elements that are moved are also updated.

WriteXml ( XmlWriter writer ) : void

Saves reference paths to an XmlWriter.

this ( int index ) : ReferencePath,

Gets or sets the ReferencePath at the specified index.

Private Methods

Method Description
GetProperties ( ) : PropertyDescriptorCollection
ICustomTypeDescriptor ( ) : AttributeCollection
ICustomTypeDescriptor ( ) : EventDescriptor
ICustomTypeDescriptor ( ) : EventDescriptorCollection
ICustomTypeDescriptor ( Attribute attributes ) : EventDescriptorCollection
ICustomTypeDescriptor ( ) : PropertyDescriptor
ICustomTypeDescriptor ( ) : PropertyDescriptorCollection
ICustomTypeDescriptor ( Attribute attributes ) : PropertyDescriptorCollection

Called to get the properties of this type. Returns properties with certain attributes. this restriction is not implemented here.

ICustomTypeDescriptor ( ) : String
ICustomTypeDescriptor ( ) : TypeConverter
ICustomTypeDescriptor ( PropertyDescriptor pd ) : object
ICustomTypeDescriptor ( Type editorBaseType ) : object

Method Details

Add() public method

Adds the specified ReferencePath object to the collection.
If the path in refPath matches one already existing in the collection, the operation is silently ignored.
is a .
public Add ( ReferencePath, refPath ) : void
refPath ReferencePath, The to add to the collection.
return void

AddRange() public method

Adds the elements of an ICollection to the end of the collection.
is a .
public AddRange ( ICollection c ) : void
c ICollection The whose elements should be added to the end of the collection. /// The collection itself cannot be a .
return void

Contains() public method

Determines whether the collection contains a specified path.
Path comparison is case-insensitive.
is a .
public Contains ( string path ) : bool
path string The path to locate in the collection.
return bool

ReadXml() public method

Loads reference paths from an XMLReader.
public ReadXml ( XmlReader reader ) : void
reader XmlReader /// An open XmlReader positioned before or on the referencePaths element.
return void

Remove() public method

Removes the first occurence of a specific ReferencePath from the collection.
Elements that follow the removed element move up to occupy the vacated spot and the indexes of the elements that are moved are also updated.
is a .
public Remove ( ReferencePath, refPath ) : void
refPath ReferencePath, The to remove from the collection.
return void

WriteXml() public method

Saves reference paths to an XmlWriter.
public WriteXml ( XmlWriter writer ) : void
writer XmlWriter An open XmlWriter.
return void

this() public method

Gets or sets the ReferencePath at the specified index.
is not a valid index /// in the collection. set value is a .
public this ( int index ) : ReferencePath,
index int The zero-based index of the to get or set.
return ReferencePath,