For educational purposes I want to enumerate all instances of the WPF Binding class.
This might be a WPF question but instead of moving this to the WPF forum, if someone can confirm that I am using reflection properly then that would be better.
I have tried the following (in my MainWindow class).
MemberInfo[] members = GetType().GetMember("Binding");
That gets nothing. So yes, each instance will be a member of some other object. Is there a way, using code, to get all instances (of the assembly) regardless of where they are? Something else that could help is a relevant tool.
WPF binding is confusing and I think that studying actual instances is one way to learn how it works. I am asking how to use reflection to list them.
And again, I will create a separate question for the parts specific to WPF.
Sam Hobbs
SimpleSamples.Info