Categories
Is there a function \ method in c# that, when called, returns an int value of the line on which it was called?
Didn't find anything like that on the internet.
Answer the question
In order to leave comments, you need to log in
Probably the CallerLineNumberAttribute attribute will suit you
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question