Click here to Skip to main content
15,906,628 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get only file name from str Pin
papa808-Sep-06 4:57
papa808-Sep-06 4:57 
GeneralRe: Get only file name from str Pin
Dave Kreskowiak8-Sep-06 9:16
mveDave Kreskowiak8-Sep-06 9:16 
AnswerRe: Get only file name from str Pin
BoneSoft8-Sep-06 5:43
BoneSoft8-Sep-06 5:43 
Questionemail attachments Pin
eggsovereasy8-Sep-06 4:08
eggsovereasy8-Sep-06 4:08 
AnswerRe: email attachments Pin
Judah Gabriel Himango8-Sep-06 5:11
sponsorJudah Gabriel Himango8-Sep-06 5:11 
GeneralRe: email attachments Pin
eggsovereasy8-Sep-06 5:37
eggsovereasy8-Sep-06 5:37 
Question__FUNCTION__, __FILE__, __LINE__ in C#? Pin
Christopher Stratmann8-Sep-06 4:06
Christopher Stratmann8-Sep-06 4:06 
AnswerRe: __FUNCTION__, __FILE__, __LINE__ in C#? Pin
Judah Gabriel Himango8-Sep-06 4:45
sponsorJudah Gabriel Himango8-Sep-06 4:45 
chris175 wrote:
Is there something similar in C#?


There isn't. However, you can retrieve some of this information programmatically. For example, you can retrieve any information about the current function using System.Reflection.MethodInfo.GetCurrentMethod().

As far as the other things, regarding the file and line of code, there's nothing that can be retrieved programmatically, AFAIK, because once compiled, the file and line information is gone. The only way you could get this is by looking through you're application's PDB debugging database.



Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Dumbest. Movie. Title. Evaaar.
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


QuestionPainting own toolstrip progress bar? Pin
Dominik Reichl8-Sep-06 3:40
Dominik Reichl8-Sep-06 3:40 
AnswerRe: Painting own toolstrip progress bar? Pin
Ravi Bhavnani8-Sep-06 7:38
professionalRavi Bhavnani8-Sep-06 7:38 
Questionhow 2 Loop a listview? Pin
Support1238-Sep-06 3:04
Support1238-Sep-06 3:04 
AnswerRe: how 2 Loop a listview? Pin
User 66588-Sep-06 3:21
User 66588-Sep-06 3:21 
GeneralRe: how 2 Loop a listview? Pin
Support1238-Sep-06 3:31
Support1238-Sep-06 3:31 
GeneralRe: how 2 Loop a listview? Pin
Support1238-Sep-06 3:48
Support1238-Sep-06 3:48 
GeneralRe: how 2 Loop a listview? Pin
User 66588-Sep-06 3:58
User 66588-Sep-06 3:58 
Questionhow i can create a mobile application in C#? Pin
yousafzai8-Sep-06 2:59
yousafzai8-Sep-06 2:59 
AnswerRe: how i can create a mobile application in C#? Pin
iqazi8-Sep-06 3:54
iqazi8-Sep-06 3:54 
GeneralRe: how i can create a mobile application in C#? Pin
Not Active8-Sep-06 4:04
mentorNot Active8-Sep-06 4:04 
GeneralRe: how i can create a mobile application in C#? Pin
iqazi8-Sep-06 4:40
iqazi8-Sep-06 4:40 
GeneralRe: how i can create a mobile application in C#? Pin
User 66588-Sep-06 4:58
User 66588-Sep-06 4:58 
GeneralRe: how i can create a mobile application in C#? Pin
Not Active8-Sep-06 5:03
mentorNot Active8-Sep-06 5:03 
AnswerRe: how i can create a mobile application in C#? Pin
Not Active8-Sep-06 4:01
mentorNot Active8-Sep-06 4:01 
Questionlist of computers in a network Pin
saqib828-Sep-06 1:52
saqib828-Sep-06 1:52 
AnswerRe: list of computers in a network Pin
Judah Gabriel Himango8-Sep-06 5:09
sponsorJudah Gabriel Himango8-Sep-06 5:09 
AnswerRe: list of computers in a network Pin
samtam8-Sep-06 19:39
samtam8-Sep-06 19:39 

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.