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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:31:48+00:00 2026-06-16T07:31:48+00:00

I am sure if the Title is explainatory or not, but I need some

  • 0

I am sure if the Title is explainatory or not, but I need some help understanding the concept.

We have class (reference types) that has method table associated with Type object.
In addition to the method tables, the type object also contains all the static fields, type obj pointer and sync block index.

CLR refers to this method table when calling methods on instance of a reference type.

Method table contains the IL for a particular method that is used to change the state of instance fields.

Similarly we can define methods for a structs (value types).

At runtime, when a method is called on a value type, from where does the CLR refer to the IL of the method being called on the instance of the value type.

struct A
{
    // for Immutability of value type
    public readonly int a;

    public void MethodOnValueType()
    {
        // Some code here
    }
}

Where does CLR refer to find the IL for the method named “MethodOnValueType”?

Is there any Type Object for the value type in the managed heap?

I am sure for the case of reference types but confused for value types.

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-06-16T07:31:50+00:00Added an answer on June 16, 2026 at 7:31 am

    Methods on value-types do not support polymorphism (except for the methods inherited from object, which are executed differently depending on whether they have been overridden): the call is a static call (not a virtual call). Basically, the “what method” part of the call information is resolved by the compiler and burned into the IL. It is then the job of the JIT to connect that call to the final method code.

    There is no object-header etc on a value-type.

    You can get a Type object for value-types, but that is not really related to method-call.

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

Sidebar

Related Questions

I'm not sure that title is worded very well, but not sure how else
Not sure if my title is worded well, but whatever :) I have two
Not sure whether the title is misleading, but requirement is below. I need to
Ok, I'm not sure that my title was clear enough, but I will try
Not sure if the title explains itself, but probably not! Anyway, I have 50
Wasnt too sure on the title for the but I have a file that
Not sure if the title makes any sense. I have an object that I
Not sure if that title makes any sense but I'll try and explain it.
I'm not sure that title conveys my meaning, please change it if you can
I am not sure my title is correct or not since I have no

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.