C# Class ReferencePathCollection, gert

Inheritance: CollectionBase, ICustomTypeDescriptor
Afficher le fichier Open project: mono/gert Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

AddRange() public méthode

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 .
Résultat void

Contains() public méthode

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.
Résultat bool

ReadXml() public méthode

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

Remove() public méthode

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.
Résultat void

WriteXml() public méthode

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

this() public méthode

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.
Résultat ReferencePath,