Skip to content
Discussion options

You must be logged in to vote
x is TypeBuilderInstantiation

the is pattern supports just mentioning the Type. I'm not too knowledgable about Reflection - hadn't even heard about TypeBuilder before this post.

You could recursively look through the GetType().GetGenericArguments() lists and then do something if any of them are whatever you need.

Replies: 2 comments 3 replies

Comment options

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

@KennethHoff
Comment options

Answer selected by 2A5F
@2A5F
Comment options

Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants