Click here to Skip to main content
15,905,781 members
Home / Discussions / C#
   

C#

 
AnswerRe: Any Ideas or feedback for a C# final year programming project? Pin
Richard MacCutchan4-Sep-13 4:56
mveRichard MacCutchan4-Sep-13 4:56 
GeneralRe: Any Ideas or feedback for a C# final year programming project? Pin
Mycroft Holmes4-Sep-13 12:51
professionalMycroft Holmes4-Sep-13 12:51 
AnswerRe: Any Ideas or feedback for a C# final year programming project? Pin
Praveen Maniyath4-Sep-13 20:31
Praveen Maniyath4-Sep-13 20:31 
GeneralRe: Any Ideas or feedback for a C# final year programming project? Pin
AmitGajjar4-Sep-13 21:03
professionalAmitGajjar4-Sep-13 21:03 
GeneralRe: Any Ideas or feedback for a C# final year programming project? Pin
Praveen Maniyath4-Sep-13 23:49
Praveen Maniyath4-Sep-13 23:49 
GeneralRe: Any Ideas or feedback for a C# final year programming project? Pin
Pete O'Hanlon4-Sep-13 21:11
mvePete O'Hanlon4-Sep-13 21:11 
GeneralRe: Any Ideas or feedback for a C# final year programming project? Pin
AmitGajjar4-Sep-13 21:15
professionalAmitGajjar4-Sep-13 21:15 
GeneralRe: Any Ideas or feedback for a C# final year programming project? Pin
Praveen Maniyath4-Sep-13 23:52
Praveen Maniyath4-Sep-13 23:52 
GeneralRe: Any Ideas or feedback for a C# final year programming project? Pin
Pete O'Hanlon5-Sep-13 0:39
mvePete O'Hanlon5-Sep-13 0:39 
AnswerRe: Any Ideas or feedback for a C# final year programming project? Pin
AmitGajjar4-Sep-13 21:12
professionalAmitGajjar4-Sep-13 21:12 
AnswerRe: Any Ideas or feedback for a C# final year programming project? Pin
V.6-Sep-13 1:56
professionalV.6-Sep-13 1:56 
QuestionParse a FlatFile with Multiline using BizTalk Pin
Ahmed Abdelnasser4-Sep-13 0:57
Ahmed Abdelnasser4-Sep-13 0:57 
QuestionWebsite visit automation script Pin
Neo101014-Sep-13 0:09
Neo101014-Sep-13 0:09 
AnswerRe: Website visit automation script Pin
Richard MacCutchan4-Sep-13 4:52
mveRichard MacCutchan4-Sep-13 4:52 
QuestionPrinting a bill format Pin
prerana patil3-Sep-13 22:59
prerana patil3-Sep-13 22:59 
AnswerRe: Printing a bill format Pin
OriginalGriff3-Sep-13 23:30
mveOriginalGriff3-Sep-13 23:30 
QuestionDaft question on indenting text. Pin
Septimus Hedgehog3-Sep-13 5:21
Septimus Hedgehog3-Sep-13 5:21 
GeneralRe: Daft question on indenting text. Pin
harold aptroot3-Sep-13 5:36
harold aptroot3-Sep-13 5:36 
AnswerRe: Daft question on indenting text. Pin
Dave Kreskowiak3-Sep-13 5:37
mveDave Kreskowiak3-Sep-13 5:37 
It's doable, but not practical.

Every one of your methods that participates in this scheme would have to pass around a "depth" field. Every time a method that uses this field is called, it would have to pass the current depth to the next method, where one of the first things the callee does is increment the depth.

I'm not liking this as is neccessitates passing an extra value into each method and each method would have to be custom implemented to support this, possibly interfering with your logic, but certainly adding a bit more complexity and duplication in your code.

I don't see any other way to do this, but I could be wrong.

[EDIT]
I just thought of something. You might be able to use the StackTrace for the current depth in some logging component, but don't count on it being accurate as you'll also be counting depth into calls that do not belong to your code.

AnswerRe: Daft question on indenting text. Pin
Septimus Hedgehog3-Sep-13 5:58
Septimus Hedgehog3-Sep-13 5:58 
AnswerRe: Daft question on indenting text. Pin
jschell3-Sep-13 12:40
jschell3-Sep-13 12:40 
GeneralRe: Daft question on indenting text. Pin
Septimus Hedgehog3-Sep-13 20:36
Septimus Hedgehog3-Sep-13 20:36 
AnswerRe: Daft question on indenting text. Pin
BillWoodruff3-Sep-13 17:24
professionalBillWoodruff3-Sep-13 17:24 
GeneralRe: Daft question on indenting text. Pin
Septimus Hedgehog3-Sep-13 20:45
Septimus Hedgehog3-Sep-13 20:45 
GeneralRe: Daft question on indenting text. Pin
BillWoodruff3-Sep-13 23:29
professionalBillWoodruff3-Sep-13 23:29 

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.