With postsharp is there a way from attribute to get variable value. This attribute will write some logs in database or nlog
[AOPTattribute($"The value of 'myint' is {myInt}")]
public void MyMethod()
{
int myInt = (default) int;
/*
some code here
*/
}
Thanks,