I have two classes like this: If I specify test1 ctor with call to base - I get membername and path initialized properly, but if not - compiler gen ...
I have two classes like this: If I specify test1 ctor with call to base - I get membername and path initialized properly, but if not - compiler gen ...
I'm trying to figure out which CallerMemberName or CallerFilePath value will be used if I'll apply these attributes to some service and then inject it ...
I have common class which is used by both GUI and CommandLine applications This class is passed a ReportError function reference which acts different ...
I get the following error on runtime: AmbiguousMatchExcpetion "Ambiguous Match found." Does someone knows what is the reason for? Class Screensho ...
I want to create a function that will be called whenever the caller gets arguments of wrong instance, that will print caller's __doc__ attribute and e ...
How is CallerMemberName implemented? I get what it does - it allows us to keep magic strings out of our code - but should it be used over nameof and ...
I'm producing a serializer in C# (.NET 4.5, VS 2013), and I'm using an attribute to control serialization metadata, such as the name to store a member ...
Admittedly I am new to wpf. But i have spent some time Googling about it all and I am stumped. in essence i want to update my TextBlock in my UI usin ...
In C# we have Caller Information MSDN Link : CallerInfo I want to know Java has equivalent annotations or not ? these features can help us for be ...
It is possible to create an attribute that has a behavior similar to CallerMemberNameAttribute? I mean, I have googled and found this article, that s ...
With the advent of .NET 4.5.3, WPF developers now have three (or more) ways to notify the INotifyPropertyChanged Interface of property changes. Basica ...
Let's say, we have an ordinary C# class with one auto get/set property. Is there any event, that is raised and that I can evaluate, when the set me ...
I am trying to combine the C# 5.0 Caller Information along with the C# params keyword. The intention is to create a wrapper for a logging framework, a ...
Similar to this question, I want to mix optional parameters with the params keyword, which of course creates ambiguity. Unfortunately, the answer of c ...
How to get the class-name with caller info attributes. I strongly say a no to log the class name using reflection. Was able to get the method name u ...
I just came across the C# 5 Caller Info Attributes (http://msdn.microsoft.com/en-us/library/hh534540.aspx). This seems like a very useful feature, an ...
Just bench-marked the performance of using StackTrace and CallerInfo Attributes. Shockingly I found that using StackTrace is much faster though every ...
There are good articles that suggest different ways for implementing INotifyPropertyChanged. Consider the following basic implementation: I'd like ...
I have the INotifyPropertyChanged implemented using CallerMemberName So this could be called in the setter of any property as - OnPropertyChanged() ...
I am trying to use CallerMemberName attribute in .NET 4.0 via BCL portability pack. It is always returning an empty string instead of the member name. ...