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

  • Home
  • SEARCH
  • 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 355437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:01:03+00:00 2026-05-12T12:01:03+00:00

For example i got a class and its got its own properties and i

  • 0

For example i got a class and its got its own properties and i am passing the name of the class and the name of the property to be called to a function

Say for example exp is the variable which i am passing which contains a value = “ClassA,Property1”

           Function Property2BCalled(byval exp as String)

            dim classname = split(exp,",")(0)
            dim propertyname=split(exp,",")(1)
            dim value= classname.propertyname

           End Function

I wanna do something like that,given above.

  • 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-12T12:01:04+00:00Added an answer on May 12, 2026 at 12:01 pm

    You could use reflection to perform this task.
    Bear in mind that reflection is Slow but it could be done.
    You would enumerate the classes available in your assembly, when you find a name match, then you enumerate the properties and then Invoke the method/properties etc.

    But it might be better to define an Interface and then have a common signature that your project can communicate with, then all you need is a Factory pumping out the appropriate instance of the class that is coming in your Data.

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

Sidebar

Related Questions

Suppose I've got the following program: namespace ReflectionTest { public class Example { private
for example i've got a TestItem entity: public class TestItem { [Key] public int
Here is an example of what I've got going on: CREATE TABLE Parent (id
I've got some XML, for example purposes it looks like this: <root> <field1>test</field1> <f2>t2</f2>
This is a detail question for C#. Suppose I've got a class with an
I got a rather big class library that contains a lot of code. I
We've got a large system that's loosely bound to its data source (Navision) via
I've got a floated list of elements which I want the same height on.
As per here I've got the following controller: class User extends CI_Controller { public
I've got following Java classes defined: mac-grek:javajunk grek$ cat A\$B.java class A$B {} mac-grek:javajunk

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.