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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:59:42+00:00 2026-05-25T12:59:42+00:00

The documentation for Type.GetTypeCode states: Remarks When you inherit from Type , you can

  • 0

The documentation for Type.GetTypeCode states:

Remarks

When you inherit from Type, you can change the behavior of this method
by overriding the GetTypeCodeImpl method.

The documentation not describe when to inherit from System.Type. Is it even valid or applicable for any real application or is it only for implementers of CLI?

The System.Type documentation doesn’t contain this information either, it only has a list of which members must be overridden for derived classes.

As there is no way of overriding typeof, I assume that the typeof operator still return an instance of the internal System.RuntimeType class from the mscorlib assembly, or similar. What use would then a user derived class have?

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

    You shouldn’t derive your own type from System.Type, basically. It’s not something I can ever see a use for, unless you’re part of the CLR team. It’s just about possible that if you’re implementing a mocking framework or something like that, there could be some reason to do so – but I’m pretty doubtful. I’d be pretty suspicious of anything deriving from Type – I would expect it’s the kind of thing which can go wrong fairly easily if you’re not careful.

    I suspect what the documentation should have said was “classes deriving from System.Type change the behaviour of this method by overriding GetTypeCodeImpl” – although frankly even that is something that users don’t really need to know.

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

Sidebar

Related Questions

The MSDN Documentation: MemberInfo.GetCustomAttibutes Method (Type, Boolean) states in the remarks: This method ignores
From the Go documentation on method declarations : The receiver type must be of
I have read the documentation that states that "given the type of the enum,
Reading through the documentation for powershells add-type it seems you can add JScript code
This Oracle documentation page mentions ... columns of type LONG are created last but
This XML documentation seems to say that the ID derived type supports a pattern,
In MSDN documentation we see : Console Thread Safety This type is thread safe.
The imaps.vim documentation mentions examples like this one As an example, when you type
Can someone point me to the specific id type documentation ? I've been through
The documentation for @ParametersAreNonnullByDefault says, that: This annotation can be applied to a package,

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.