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

C#

 
QuestionTRY THIS!.. [modified] Pin
dianenacario7-Aug-07 22:08
dianenacario7-Aug-07 22:08 
AnswerRe: TRY THIS!.. Pin
Hessam Jalali7-Aug-07 22:46
Hessam Jalali7-Aug-07 22:46 
GeneralRe: TRY THIS!.. Pin
dianenacario7-Aug-07 22:56
dianenacario7-Aug-07 22:56 
GeneralRe: TRY THIS!.. Pin
Hessam Jalali7-Aug-07 23:15
Hessam Jalali7-Aug-07 23:15 
GeneralRe: TRY THIS!.. Pin
dianenacario7-Aug-07 23:21
dianenacario7-Aug-07 23:21 
GeneralRe: TRY THIS!.. Pin
dianenacario7-Aug-07 22:58
dianenacario7-Aug-07 22:58 
AnswerRe: TRY THIS!.. Pin
m@u7-Aug-07 22:50
m@u7-Aug-07 22:50 
GeneralRe: TRY THIS!.. Pin
dianenacario7-Aug-07 22:57
dianenacario7-Aug-07 22:57 
AnswerRe: TRY THIS!.. Pin
Luc Pattyn7-Aug-07 23:16
sitebuilderLuc Pattyn7-Aug-07 23:16 
QuestionC# class questions Pin
choadvach7-Aug-07 21:45
choadvach7-Aug-07 21:45 
AnswerRe: C# class questions Pin
originSH7-Aug-07 22:25
originSH7-Aug-07 22:25 
GeneralRe: C# class questions Pin
choadvach7-Aug-07 23:12
choadvach7-Aug-07 23:12 
QuestionMulti Language Windows base Software Pin
Abubakarsb7-Aug-07 21:25
Abubakarsb7-Aug-07 21:25 
AnswerRe: Multi Language Windows base Software Pin
Hessam Jalali7-Aug-07 21:43
Hessam Jalali7-Aug-07 21:43 
AnswerRe: Multi Language Windows base Software Pin
lmoelleb7-Aug-07 21:51
lmoelleb7-Aug-07 21:51 
QuestionDataset format inconsistency. Pin
M. J. Jaya Chitra7-Aug-07 20:52
M. J. Jaya Chitra7-Aug-07 20:52 
AnswerRe: Dataset format inconsistency. Pin
dotman17-Aug-07 23:25
dotman17-Aug-07 23:25 
AnswerRe: Dataset format inconsistency. Pin
kabeervh8-Aug-07 1:05
kabeervh8-Aug-07 1:05 
QuestionHow i can save a form and send it through mail. Pin
sundeep.A7-Aug-07 20:25
sundeep.A7-Aug-07 20:25 
AnswerRe: How i can save a form and send it through mail. Pin
kabeervh8-Aug-07 1:07
kabeervh8-Aug-07 1:07 
QuestionHow can i declare a global variable which can be used in the multiple projects Pin
nicolus7-Aug-07 20:22
nicolus7-Aug-07 20:22 
AnswerRe: How can i declare a global variable which can be used in the multiple projects Pin
Hessam Jalali7-Aug-07 21:11
Hessam Jalali7-Aug-07 21:11 
AnswerRe: How can i declare a global variable which can be used in the multiple projects Pin
Urs Enzler7-Aug-07 22:24
Urs Enzler7-Aug-07 22:24 
QuestionGetting the Name of the Method Which Invoked the Current Method Pin
vvijaykrishna7-Aug-07 20:10
vvijaykrishna7-Aug-07 20:10 
AnswerRe: Getting the Name of the Method Which Invoked the Current Method Pin
originSH7-Aug-07 22:53
originSH7-Aug-07 22:53 
#region GetCallingStackFrame
[MethodImpl(MethodImplOptions.NoInlining)]
public static StackFrame GetCallingStackFrame()
{
return new StackFrame(2, true);
}
#endregion

this method will return the calling method of the calling method hehe

To put that a bit more clearly:

MethodA calls MethodB.
MethodB calls GetCallingStackFrame.
GetCallingStackFrame returns the stack frame for MethodA calling MethodB.

this code will return the MethodBase for the stack frame and so get the info about the method.
StackFrame callingStackFrame = GetCallingStackFrame();
MethodBase callingMethodBase = callingStackFrame.GetMethod();

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.