Cで言うところの__FILE__, __LINE__マクロの代用法

kenjiro_nkenjiro_n のブックマーク 2016/06/07 10:34

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Print the source filename and linenumber in C#

    Is there any way to retrieve the current source filename and linenumber in C# code and print that value in the console output? Like LINE and FILE in C? Please advise. Many thanks

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう