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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:00:35+00:00 2026-05-20T11:00:35+00:00

I noticed that interface type definition metadata looks like: TypDefName: Interfaces.IMyInterface (02000003) Flags :

  • 0

I noticed that interface type definition metadata looks like:

TypDefName: Interfaces.IMyInterface  (02000003)
Flags     : [Public] [AutoLayout] [Interface] [Abstract] [AnsiClass]  (000000a1)
Extends   : 01000000 [TypeRef]

whereas everything else I create e.g. class, enum, struct, has an extends entry that looks like:

Extends   : 01000001 [TypeRef] System.Object

(where System.Object is replaced with some other class name if the type does not inherit directly):

So, my question is:

Is “01000000” just a magic number that signifies “interface”? If so, are there other scenarios where similar happens?

UPDATE

The entry for System.Object is the same:

TypDefName: System.Object  (02000002)
Flags     : [Public] [AutoLayout] [Class] [Serializable] [AnsiClass] [BeforeFieldInit]  (00102001)
Extends   : 01000000 [TypeRef]

…actually it is the same for all interfaces:

TypDefName: Interfaces.IMyOtherInterface  (02000007)
Flags     : [Public] [AutoLayout] [Interface] [Abstract] [AnsiClass]  (000000a1)
Extends   : 01000000 [TypeRef] 
InterfaceImpl #1 (09000002)

This follows what is in the document listed in Hans’ answer.

So, even though I can’t find the bit that actually says “interfaces and System.Object do not require a TypeDef row”, that must be what is happening and so this question is done.

  • 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-20T11:00:35+00:00Added an answer on May 20, 2026 at 11:00 am

    It is a ‘metadata token’, it references an item in the tables in the metadata of the assembly. The first hex pair indicates the table type, the next 3 pairs is just a sequence number for the table row. Table 0x01 is the TypeRef table, table 0x02 is the TypeDef table.

    This is described well in excruciating detail in Ecma-335, the standards document for the Common Language Infrastructure.

    Missed the question, adding: an interface type does not have to inherit anything. Unlike a class which always derives from System.Object. Which makes metadata token 0x01000000 likely to mean “nothing”. The actual table entries are however not fixed, you’d normally have to look in the table. Ildasm does it for you.

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

Sidebar

Related Questions

I have noticed that doing actions like implementing an interface, that a small rectangle
I noticed that the castle windsor fluent component registration interface has the rather confusing
I noticed that the generic IEnumerator<T> inherits from IDisposable, but the non-generic interface IEnumerator
I would like to do something like the below public interface IFormatter<TData, TFormat> {
I noticed that when you type ctor then hit the Tab button, VS will
I noticed that Google maps is providing directions in my local language (hungarian) when
I noticed that you can call Queue.Synchronize to get a thread-safe queue object, but
I noticed that my Designer.vb file of one of my forms has a lot
We noticed that lots of bugs in our software developed in C# (or Java)
i noticed that paypal displays a very different favicon, one that's not just a

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.