Skip to content
Discussion options

You must be logged in to vote
  1. What's so painful about typeof(C) or c.GetType() that it needs to be reduced by a few characters?
  2. How do you handle the overloads of GetProperty which take more than just a string?
  3. How do you handle the other GetXXX methods, e.g. for methods/events/etc? Why does $(Class.Foo) get you a PropertyInfo, and not a MethodInfo or EventInfo, etc?
  4. C# has dynamic which may help with some of these cases. E.g. typeof(C).GetProperty("Foo").Invoke(c) is similar to ((dynamic)c).Foo

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@Phantonia
Comment options

@orthoxerox
Comment options

Comment options

You must be logged in to vote
2 replies
@Flithor
Comment options

@CyrusNajmabadi
Comment options

Answer selected by Flithor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants