methodbase Questions
7
Solved
Using log4net declared as:
private readonly ILog log =
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType());
In an async method or task, like this one:
public async void CheckS...
Vegetal asked 23/3, 2014 at 23:3
3
in my application i have a little action log. In there I save the last few calls of certain methods in my application like this:
saveLastAction(MethodBase.GetCurrentMethod(), getCurrentStatus(), i...
Stubby asked 19/1, 2015 at 10:44
2
Solved
I have a cache based on
Dictionary<MethodBase, string>
The key is rendered from MethodBase.GetCurrentMethod. Everything worked fine until methods were explicitly declared. But one day it ...
Hypothetical asked 21/12, 2009 at 14:34
2
Solved
I have written a log class and a function as in the following code:
Log(System.Reflection.MethodBase methodBase, string message)
Every time I log something I also log the class name from the met...
Sonneteer asked 3/2, 2011 at 11:33
1
Solved
I am trying to work with the class found in this post but it needs a MethodBase to run.
I read What is the fastest way to get a MethodBase object? but i couldn't get any solution to work.
What i ...
Questor asked 28/7, 2011 at 8:53
2
Solved
Is it possible to find out anything about a Method body with reflection?
How?
Disunity asked 13/2, 2011 at 20:12
1
© 2022 - 2024 — McMap. All rights reserved.