C# Class Itenso.Sys.Collection.StringCollection

A simple immutable storage utility to hold multiple strings.
Inheritance: System.Collections.ReadOnlyCollectionBase, IStringCollection
Afficher le fichier Open project: Shereef/RTF-to-HTML-Converter-Class-Library-DLL Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty IStringCollection

Méthodes publiques

Méthode Description
Add ( string item ) : int

Adds the given item.

Add ( string item, int pos ) : void

Adds the given item at the given position.

AddAll ( IStringCollection items ) : void

Adds all items in the given list to this instance.

AddCommaSeparated ( string commaSeparatedList ) : void

Adds all items in the given comma separated list to this instance.

Clear ( ) : void
Contains ( string test ) : bool
CopyTo ( string array, int index ) : void

Copies this collections items to the given array.

Equals ( object obj ) : bool
FormatCommaSeparated ( ) : string
FromCommaSeparated ( string commaSeparatedList ) : StringCollection
GetHashCode ( ) : int
IndexOf ( string test ) : int
Remove ( string item ) : void

Removes the given item.

RemoveAll ( IStringCollection items ) : void

Removes all items in the given list from this instance.

RemoveAt ( int index ) : void

Removes the given item.

Sort ( ) : void
StringCollection ( ) : System

Creates a new empty instance.

StringCollection ( ICollection collection ) : System

Creates a new instance with all the items of the given collection.

StringCollection ( IStringCollection collection ) : System

Creates a new instance with all the items of the given collection.

ToString ( ) : string

Lists the contents of this collection.

this ( int index ) : string

Index access to the items of this collection.

Method Details

Add() public méthode

Adds the given item.
public Add ( string item ) : int
item string the item to add
Résultat int

Add() public méthode

Adds the given item at the given position.
public Add ( string item, int pos ) : void
item string the item to add
pos int the position to insert the new item into
Résultat void

AddAll() public méthode

Adds all items in the given list to this instance.
public AddAll ( IStringCollection items ) : void
items IStringCollection the items to add
Résultat void

AddCommaSeparated() public méthode

Adds all items in the given comma separated list to this instance.
public AddCommaSeparated ( string commaSeparatedList ) : void
commaSeparatedList string the items to add
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Contains() public méthode

public Contains ( string test ) : bool
test string
Résultat bool

CopyTo() public méthode

Copies this collections items to the given array.
public CopyTo ( string array, int index ) : void
array string the target array
index int the target index
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

FormatCommaSeparated() public méthode

public FormatCommaSeparated ( ) : string
Résultat string

FromCommaSeparated() public static méthode

public static FromCommaSeparated ( string commaSeparatedList ) : StringCollection
commaSeparatedList string
Résultat StringCollection

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IndexOf() public méthode

public IndexOf ( string test ) : int
test string
Résultat int

Remove() public méthode

Removes the given item.
public Remove ( string item ) : void
item string the item to remove
Résultat void

RemoveAll() public méthode

Removes all items in the given list from this instance.
public RemoveAll ( IStringCollection items ) : void
items IStringCollection the items to remove
Résultat void

RemoveAt() public méthode

Removes the given item.
public RemoveAt ( int index ) : void
index int the index of the item to remove
Résultat void

Sort() public méthode

public Sort ( ) : void
Résultat void

StringCollection() public méthode

Creates a new empty instance.
public StringCollection ( ) : System
Résultat System

StringCollection() public méthode

Creates a new instance with all the items of the given collection.
public StringCollection ( ICollection collection ) : System
collection ICollection the items to add. may not be null. any non-string items /// in this collection will be returned as null when trying to access them later.
Résultat System

StringCollection() public méthode

Creates a new instance with all the items of the given collection.
public StringCollection ( IStringCollection collection ) : System
collection IStringCollection the items to add. may not be null. any non-string items /// in this collection will be returned as null when trying to access them later.
Résultat System

ToString() public méthode

Lists the contents of this collection.
public ToString ( ) : string
Résultat string

this() public méthode

Index access to the items of this collection.
public this ( int index ) : string
index int the index of the item to retrieve
Résultat string

Property Details

Empty public_oe static_oe property

public static IStringCollection Empty
Résultat IStringCollection