Click here to Skip to main content
15,923,219 members
Home / Discussions / C#
   

C#

 
QuestionMessage Removed Pin
5-Jan-12 5:52
professionalN_tro_P5-Jan-12 5:52 
AnswerRe: Interfaces and Collections Pin
Sentenryu5-Jan-12 6:41
Sentenryu5-Jan-12 6:41 
GeneralMessage Removed Pin
5-Jan-12 6:53
professionalN_tro_P5-Jan-12 6:53 
GeneralRe: Interfaces and Collections Pin
Sentenryu5-Jan-12 7:11
Sentenryu5-Jan-12 7:11 
AnswerRe: Interfaces and Collections Pin
SledgeHammer015-Jan-12 10:38
SledgeHammer015-Jan-12 10:38 
QuestionRe: Interfaces and Collections Pin
Sentenryu5-Jan-12 10:48
Sentenryu5-Jan-12 10:48 
GeneralRe: Interfaces and Collections Pin
BillWoodruff5-Jan-12 16:46
professionalBillWoodruff5-Jan-12 16:46 
GeneralRe: Interfaces and Collections Pin
SledgeHammer015-Jan-12 16:59
SledgeHammer015-Jan-12 16:59 
Just a shortcut. Instead of implementing a full blown enumerator, you can just do something like:

public IEnumerable<int> GetEnumerator()
{
for (int i = 0; i < 100; i++)
yield return i;
}

foreach on the returned IEnumerable<int> will work on that just as expected:

foreach (int i in GetEnumerator())
{
System.Diagnostics.Writeline(i);
}
AnswerRe: Interfaces and Collections Pin
BillWoodruff5-Jan-12 16:44
professionalBillWoodruff5-Jan-12 16:44 
GeneralRe: Interfaces and Collections Pin
SledgeHammer015-Jan-12 16:54
SledgeHammer015-Jan-12 16:54 
GeneralRe: Interfaces and Collections Pin
Sentenryu5-Jan-12 22:13
Sentenryu5-Jan-12 22:13 
GeneralRe: Interfaces and Collections Pin
BillWoodruff5-Jan-12 23:16
professionalBillWoodruff5-Jan-12 23:16 
AnswerRe: Interfaces and Collections Pin
BobJanova9-Jan-12 0:17
BobJanova9-Jan-12 0:17 
QuestionRichTextBox.TextLength vs RichTextBox.Text.Length Pin
morglorf5-Jan-12 5:49
morglorf5-Jan-12 5:49 
AnswerRe: RichTextBox.TextLength vs RichTextBox.Text.Length Pin
morglorf5-Jan-12 6:18
morglorf5-Jan-12 6:18 
GeneralRe: RichTextBox.TextLength vs RichTextBox.Text.Length Pin
Ravi Bhavnani5-Jan-12 7:58
professionalRavi Bhavnani5-Jan-12 7:58 
QuestionHow to read ocr image in MODI using visual studio? Pin
pervaizali5-Jan-12 4:22
pervaizali5-Jan-12 4:22 
AnswerRe: How to read ocr image in MODI using visual studio? Pin
OriginalGriff5-Jan-12 4:44
mveOriginalGriff5-Jan-12 4:44 
QuestionHow to read ocr image in visual studio using MODI? Pin
pervaizali5-Jan-12 4:20
pervaizali5-Jan-12 4:20 
QuestionClipping Line in WPF Pin
nhuvayday4-Jan-12 17:30
nhuvayday4-Jan-12 17:30 
QuestionCan you run application (built in C#) from PC to Mobile phone via Bluetooth Pin
LAPEC4-Jan-12 13:28
LAPEC4-Jan-12 13:28 
AnswerRe: Can you run application (built in C#) from PC to Mobile phone via Bluetooth Pin
Dave Kreskowiak4-Jan-12 15:21
mveDave Kreskowiak4-Jan-12 15:21 
GeneralSeeking a C# mentor. Pin
Member 85400644-Jan-12 12:36
Member 85400644-Jan-12 12:36 
GeneralRe: Seeking a C# mentor. Pin
Richard Andrew x644-Jan-12 13:17
professionalRichard Andrew x644-Jan-12 13:17 
GeneralRe: Seeking a C# mentor. Pin
Member 85400644-Jan-12 13:40
Member 85400644-Jan-12 13:40 

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.