Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compile Question Pin
HahnTech5-Sep-06 12:08
HahnTech5-Sep-06 12:08 
GeneralRe: Compile Question Pin
S. Senthil Kumar5-Sep-06 17:59
S. Senthil Kumar5-Sep-06 17:59 
GeneralRe: Compile Question Pin
HahnTech5-Sep-06 18:31
HahnTech5-Sep-06 18:31 
QuestionHide Windows Application in System Tray? Pin
MudkiSekhon5-Sep-06 5:12
MudkiSekhon5-Sep-06 5:12 
AnswerRe: Hide Windows Application in System Tray? Pin
Stefan Troschuetz5-Sep-06 5:23
Stefan Troschuetz5-Sep-06 5:23 
QuestionIs there bidirectional iterator in C# Pin
AndriyZZ5-Sep-06 5:11
AndriyZZ5-Sep-06 5:11 
AnswerRe: Is there bidirectional iterator in C# Pin
Not Active5-Sep-06 7:28
mentorNot Active5-Sep-06 7:28 
GeneralRe: Is there bidirectional iterator in C# Pin
AndriyZZ5-Sep-06 9:37
AndriyZZ5-Sep-06 9:37 
Mark, thank you for advice. I think you've meant smth like this:
public IEnumerator<t> GetEnumerator() {
if (left != null) foreach (T x in left) yield x;
yield value;
if (right != null) foreach (T x in right) yield x;
}

But I need calling "MoveNext" and "MovePrevious" in arbitrary order e.g.: "MoveNext", "MoveNext", "MoveNext", "MovePrevious", "MoveNext", "MoveNext".

If you know how to implement discribed behaviour using "yield" please write small code snippet. I haven't found how to do it after investigating C# Specification describing "yield".

I think possible solution can be wrapping LinkedList.
What do you think about this?
GeneralRe: Is there bidirectional iterator in C# Pin
Not Active5-Sep-06 9:49
mentorNot Active5-Sep-06 9:49 
GeneralRe: Is there bidirectional iterator in C# Pin
AndriyZZ5-Sep-06 10:17
AndriyZZ5-Sep-06 10:17 
GeneralRe: Is there bidirectional iterator in C# Pin
Not Active5-Sep-06 10:34
mentorNot Active5-Sep-06 10:34 
AnswerRe: Is there bidirectional iterator in C# Pin
Nader Elshehabi5-Sep-06 11:10
Nader Elshehabi5-Sep-06 11:10 
GeneralRe: Is there bidirectional iterator in C# Pin
AndriyZZ5-Sep-06 11:20
AndriyZZ5-Sep-06 11:20 
QuestionShell Namespace Question Pin
RSL-REK5-Sep-06 4:59
RSL-REK5-Sep-06 4:59 
AnswerRe: Shell Namespace Question Pin
led mike5-Sep-06 7:52
led mike5-Sep-06 7:52 
GeneralRe: Shell Namespace Question Pin
RSL-REK8-Sep-06 4:46
RSL-REK8-Sep-06 4:46 
GeneralRe: Shell Namespace Question Pin
led mike8-Sep-06 4:58
led mike8-Sep-06 4:58 
Questionserial communication with antenna Pin
faladrim5-Sep-06 4:31
faladrim5-Sep-06 4:31 
AnswerRe: serial communication with antenna Pin
Dan Neely5-Sep-06 5:08
Dan Neely5-Sep-06 5:08 
AnswerRe: serial communication with antenna Pin
Nader Elshehabi5-Sep-06 11:02
Nader Elshehabi5-Sep-06 11:02 
QuestionUnable to read app.config file Pin
Goalie355-Sep-06 4:18
Goalie355-Sep-06 4:18 
AnswerRe: Unable to read app.config file Pin
Rob Philpott5-Sep-06 4:34
Rob Philpott5-Sep-06 4:34 
GeneralRe: Unable to read app.config file Pin
Goalie355-Sep-06 4:46
Goalie355-Sep-06 4:46 
GeneralRe: Unable to read app.config file Pin
S. Senthil Kumar5-Sep-06 18:03
S. Senthil Kumar5-Sep-06 18:03 
QuestionCommand line and args[] question Pin
User 66585-Sep-06 3:56
User 66585-Sep-06 3:56 

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.