C# Class Belot.CardsCollection

Collection of cards.
Inheritance: System.Collections.ReadOnlyCollectionBase
显示文件 Open project: NikolayIT/BelotGameEngine Class Usage Examples

Public Methods

Method Description
CardsCollection ( ) : System
Contains ( Card value ) : bool

Whether the collection contains a specific card.

IndexOf ( Card value ) : int

this ( int index ) : Card

Indexer for the collection

Protected Methods

Method Description
RaiseChanged ( ) : void

Raises the Changed event

Private Methods

Method Description
Add ( Card value ) : int
Clear ( ) : void
Insert ( int index, Card value ) : void
Remove ( Card value ) : void
RemoveAt ( int index ) : void
Sort ( CardComparer comparer ) : void

Method Details

CardsCollection() public method

public CardsCollection ( ) : System
return System

Contains() public method

Whether the collection contains a specific card.
public Contains ( Card value ) : bool
value Card
return bool

IndexOf() public method

public IndexOf ( Card value ) : int
value Card
return int

RaiseChanged() protected method

Raises the Changed event
protected RaiseChanged ( ) : void
return void

this() public method

Indexer for the collection
public this ( int index ) : Card
index int
return Card