C# Class System.Collections.Specialized.Tests.MyNameObjectCollection

Inheritance: System.Collections.Specialized.NameObjectCollectionBase
Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Add ( string name, Foo value ) : void
Clear ( ) : void
GetAllKeys ( ) : string[]
GetAllValues ( ) : object[]
GetAllValues ( Type type ) : object[]
GetKey ( int index ) : string
HasKeys ( ) : bool
MyNameObjectCollection ( )
MyNameObjectCollection ( IEqualityComparer comparer )
MyNameObjectCollection ( IHashCodeProvider hashProvider, IComparer comparer )
MyNameObjectCollection ( int capacity )
MyNameObjectCollection ( int capacity, IEqualityComparer comparer )
MyNameObjectCollection ( int capacity, IHashCodeProvider hashProvider, IComparer comparer )
Remove ( string name ) : void
RemoveAt ( int index ) : void
this ( int index ) : Foo
this ( string name ) : Foo

Method Details

Add() public method

public Add ( string name, Foo value ) : void
name string
value Foo
return void

Clear() public method

public Clear ( ) : void
return void

GetAllKeys() public method

public GetAllKeys ( ) : string[]
return string[]

GetAllValues() public method

public GetAllValues ( ) : object[]
return object[]

GetAllValues() public method

public GetAllValues ( Type type ) : object[]
type System.Type
return object[]

GetKey() public method

public GetKey ( int index ) : string
index int
return string

HasKeys() public method

public HasKeys ( ) : bool
return bool

MyNameObjectCollection() public method

MyNameObjectCollection() public method

public MyNameObjectCollection ( IEqualityComparer comparer )
comparer IEqualityComparer

MyNameObjectCollection() public method

public MyNameObjectCollection ( IHashCodeProvider hashProvider, IComparer comparer )
hashProvider IHashCodeProvider
comparer IComparer

MyNameObjectCollection() public method

public MyNameObjectCollection ( int capacity )
capacity int

MyNameObjectCollection() public method

public MyNameObjectCollection ( int capacity, IEqualityComparer comparer )
capacity int
comparer IEqualityComparer

MyNameObjectCollection() public method

public MyNameObjectCollection ( int capacity, IHashCodeProvider hashProvider, IComparer comparer )
capacity int
hashProvider IHashCodeProvider
comparer IComparer

Remove() public method

public Remove ( string name ) : void
name string
return void

RemoveAt() public method

public RemoveAt ( int index ) : void
index int
return void

this() public method

public this ( int index ) : Foo
index int
return Foo

this() public method

public this ( string name ) : Foo
name string
return Foo