Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Difference between Menu and MenuStrip, etc Pin
S. Senthil Kumar22-May-09 4:42
S. Senthil Kumar22-May-09 4:42 
GeneralRe: Difference between Menu and MenuStrip, etc Pin
Dan Neely22-May-09 9:02
Dan Neely22-May-09 9:02 
QuestionWindows Media Player [modified] Pin
gmhanna22-May-09 4:07
gmhanna22-May-09 4:07 
AnswerRe: Windows Media Player Pin
OriginalGriff22-May-09 5:04
mveOriginalGriff22-May-09 5:04 
GeneralRe: Windows Media Player Pin
gmhanna22-May-09 8:18
gmhanna22-May-09 8:18 
GeneralRe: Windows Media Player Pin
OriginalGriff22-May-09 9:26
mveOriginalGriff22-May-09 9:26 
GeneralRe: Windows Media Player Pin
gmhanna22-May-09 10:44
gmhanna22-May-09 10:44 
QuestionEnumerating a class Pin
CodingYoshi22-May-09 3:52
CodingYoshi22-May-09 3:52 
If I have a class which holds a bunch of employees and I want to allow enumeration over it, I can implement IEnumerable as below:

public class EmployeeCollection : IEnumerable<Employee>
{
private List<Employee> _employees;

public IEnumerator<Employee> GetEnumerator()
{
return this._sheets.GetEnumerator();
}

public IEnumerator GetEnumerator()
{
return this._sheets.GetEnumerator();
}
}

Any idea how I can allow enumeration if I am using a Dictionary<string, Employee> instead of List<Employee>? What interface do I need to implement and how?

CodingYoshi

Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07

AnswerRe: Enumerating a class Pin
PIEBALDconsult22-May-09 4:24
mvePIEBALDconsult22-May-09 4:24 
GeneralRe: Enumerating a class Pin
CodingYoshi22-May-09 4:44
CodingYoshi22-May-09 4:44 
QuestionComboBox not autoresizing on rebind of datasource Pin
Paul.B22-May-09 3:24
Paul.B22-May-09 3:24 
AnswerRe: ComboBox not autoresizing on rebind of datasource Pin
CodingYoshi22-May-09 3:58
CodingYoshi22-May-09 3:58 
GeneralRe: ComboBox not autoresizing on rebind of datasource Pin
Paul.B22-May-09 5:42
Paul.B22-May-09 5:42 
GeneralRe: ComboBox not autoresizing on rebind of datasource Pin
CodingYoshi22-May-09 8:07
CodingYoshi22-May-09 8:07 
GeneralRe: ComboBox not autoresizing on rebind of datasource Pin
Paul.B25-May-09 22:56
Paul.B25-May-09 22:56 
QuestionSearch in List<t></t> Pin
arturw8222-May-09 3:21
arturw8222-May-09 3:21 
AnswerRe: Search in List Pin
Jimmanuel22-May-09 3:29
Jimmanuel22-May-09 3:29 
GeneralRe: Search in List Pin
arturw8222-May-09 3:59
arturw8222-May-09 3:59 
GeneralRe: Search in List Pin
Jimmanuel22-May-09 4:15
Jimmanuel22-May-09 4:15 
AnswerRe: Search in List Pin
musefan22-May-09 3:33
musefan22-May-09 3:33 
GeneralRe: Search in List [modified] Pin
arturw8222-May-09 3:36
arturw8222-May-09 3:36 
GeneralRe: Search in List Pin
musefan22-May-09 3:45
musefan22-May-09 3:45 
GeneralRe: Search in List Pin
arturw8222-May-09 3:56
arturw8222-May-09 3:56 
GeneralRe: Search in List Pin
musefan22-May-09 4:35
musefan22-May-09 4:35 
AnswerMessage Removed Pin
22-May-09 6:03
professionalN_tro_P22-May-09 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.