Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    You can't use typeof() with a generic parameter, though. Commented Mar 8, 2019 at 17:52
  • 9
    @Reynevan Of course you can use typeof() with a generic parameter. Do you have any example where it wouldn't work? Or are you confusing type parameters and references? Commented Jul 26, 2019 at 7:41
  • @Luaan - I think he means you can't use typeof (x) when x is a variable - e.g. Type x=object.GetType(); Commented May 13 at 15:03