[]
Determines whether the collection contains a specific item.
public bool Contains(TItem item)
Type | Name | Description |
---|---|---|
TItem | item | The item to check. |
Type | Description |
---|---|
bool | True if the collection contains specified item; false otherwise. |
Determines whether the collection contains an item with specified name.
public bool Contains(string name)
Type | Name | Description |
---|---|---|
string | name | The name of the item. |
Type | Description |
---|---|
bool | True if the collection contains an item with the specified name; otherwise, false. |