Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7523155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:42:46+00:00 2026-05-30T02:42:46+00:00

I am new to reflection and am hitting a brick wall trying to understand

  • 0

I am new to reflection and am hitting a brick wall trying to understand types.

What exactly does Assembly mean and what does Assembly.GetTypes() return? Also if you call something like GetGenericArguments() on a ‘type’ you get from the GetTypes() command, what does that do exactly?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:42:48+00:00Added an answer on May 30, 2026 at 2:42 am

    Calling Assembly.GetTypes() returns all the types and interfaces that are defined in the assembly.

    Calling Type.GetGenericArguments() returns all the generic parameters specified for a generic type. This might not be the clearest explanation, an example would help:

    var type1 = typeof(Func<>);
    type1.GetGenericArguments(); // [ typeof(TResult) ]
    
    var type2 = typeof(Func<string>);
    type2.GetGenericArguments(); // [ typeof(String) ]
    
    var type3 = typeof(Tuple<string, int, bool>);
    type3.GetGenericArguments(); // [ typeof(String), typeof(Int32), typeof(Boolean) ]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See title. Reflection.Emit seems to be more about creating a new dynamic assembly, not
I'm trying to implement the strategy pattern using reflection, i.e. instantiate a new Concrete
I'm a bit new to reflection in c#. I'm trying to generate a list
I have an issue with .Net reflection. The concept is fairly new to me
New to all this so forgive my ignorance. I am trying to figure out
I am new to wpf and from what i've seen it uses reflection a
I have this code: Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application(); object nullobj = System.Reflection.Missing.Value; object
I'm pretty new to Java, and I'm facing a reflection issue. Let's say i
I'm fairly new to reflection and I was wonder what I would use a
Is this code: System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(); System.Reflection.MethodBase methodBase = stackFrame.GetMethod(); stackFrame.GetFileName(); stackFrame.GetFileLineNumber();

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.