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 9198017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:11:36+00:00 2026-06-17T22:11:36+00:00

Its said that most high-level dynamically types languages are reflexive. Reflection (computer programming) on

  • 0

Its said that most high-level dynamically types languages are reflexive. Reflection (computer programming) on Wikipedia explains but it doesn’t really give a very clear picture of what it means. Can anyone explain it in a simpler way by a relevant example?

  • 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-06-17T22:11:37+00:00Added an answer on June 17, 2026 at 10:11 pm

    To give you a example how to use Reflection in a practical way:

    Let’s assume you are developing an Application which you’d like to extend using plugins. These plugins are simple Assemblies containing just a class named Person:

    namespace MyObjects
    {
        public class Person
        {
            public Person() { ... Logic setting pre and postname ... }
            private string _prename;
            private string _postname;
            public string GetName() { ... concat variabes and return ... }
        }
    }
    

    Well, plugins should extend your application at runtime. That means, that the content and logic should be loaded from another assembly when your application already runs. This means that these resources are not compiled into your Assembly, i.e. MyApplication.exe. Lets assume they are located in a library: MyObjects.Person.dll.

    You are now faced with the fact that you’ll need to extract this Information and for example access the GetName() function from MyObjects.Person.

    // Create an assembly object to load our classes
    Assembly testAssembly = Assembly.LoadFile(Application.StartUpPath + @"MyObjects.Person.dll");
    Type objType = testAssembly.GetType("MyObjects.Person");
    
    // Create an instace of MyObjects.Person
    var instance = Activator.CreateInstance(objType);
    
    // Call the method
    string fullname = (string)calcType.InvokeMember("GetName",
    BindingFlags.InvokeMethod | BindingFlags.Instance | BindingFlags.Public,
    null, instance, null);
    

    As you can see, you could use System.Reflection for dynamic load of Resources on Runtime. This might be a help understanding the ways you can use it.

    Have a look on this page to see examples how to access assemblys in more detail. It’s basically the same content i wrote.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On this blog post , it's said that the minimum memory usage of a
In OOD, design of an object is said to be characterized by its identity
I come from a python background, where it's often said that it's easier to
I want to overload a function so that it manipulates its argument in some
I am developing a WCF service which follows MSDN's service archetype . That said,
I am designing a web interface to a certain hardware appliance that provides its
Most python frameworks will have a development webserver of some kind that will have
I have a table that is populated from a SQL database. Most of the
I have developed a kind of brochure website template that I base most of
our application server (sunOS) always gets disk full. and our Infrastructure team said it's

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.