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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:03:08+00:00 2026-05-23T17:03:08+00:00

I need to make fixed point number class inherit from System.Type. class FixedPoint :

  • 0

I need to make fixed point number class inherit from System.Type.

class FixedPoint : Type
{
    public bool Signed { get; set; }
    public int Width { get; set; }
    public int IntegerWidth { get; set; }
    public FixedPoint(Boolean signed = false, int width = 16, int integerWidth = 8)
    {
        Signed = signed;
        Width = width;
        IntegerWidth = integerWidth;
    }
}

When I tried to compile this code, I got error messages saying that I need to implement methods as Type is abstract class.

userdef.cs(3,7): error CS0534: 'FixedPoint' does not implement inherited abstract member 'System.Type.GUID.get'
userdef.cs(3,7): error CS0534: 'FixedPoint' does not implement inherited abstract member 'System.Type.Namespace.get'
c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll: (Location of symbol related to previous error)
userdef.cs(3,7): error CS0534: 'FixedPoint' does not implement inherited abstract member
        'System.Type.AssemblyQualifiedName.get'

How can I avoid those error messages? Is there any easy way to subclass Type? Do I have to implement all the methods? If so, are there any references for doing that?

Or

Is the work of subclassing Type worth trying? I do need to subclass Type for some reasons, if it’s really hard to do it. I’d better give up early to find another way.

  • 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-23T17:03:09+00:00Added an answer on May 23, 2026 at 5:03 pm

    You say you have your reasons for inheriting from System.Type, even though I agree with @mootinator, here are some answers to your other questions:

    Is there any easy way to subclass Type?

    No.

    Do I have to implement all the methods?

    Yes.

    If so, are there any references for doing that?

    You add the override-keyword to each of the Properties and Methods

    This is an example of how you start off, you need to override each of the abstract properties and methods.

    public class Test : Type
    {
        public override Guid GUID
        {
            get { throw new NotImplementedException(); }
        }
    }
    

    This is a complete compileable class that overrides all the properties and methods that is needed, but nothing is implemented.

    public class Test : Type
    {
        public override Guid GUID
        {
            get { throw new NotImplementedException(); }
        }
    
        public override bool IsDefined(Type attributeType, bool inherit)
        {
            throw new NotImplementedException();
        }
        public override object[] GetCustomAttributes(bool inherit)
        {
            throw new NotImplementedException();
        }
        public override string Name
        {
            get { throw new NotImplementedException(); }
        }
        protected override bool HasElementTypeImpl()
        {
            throw new NotImplementedException();
        }
        public override object[] 
               GetCustomAttributes(Type attributeType, bool inherit)
        {
            throw new NotImplementedException();
        }
        public override Type UnderlyingSystemType
        {
            get { throw new NotImplementedException(); }
        }
        public override Type GetElementType()
        {
            throw new NotImplementedException();
        }
        protected override bool IsCOMObjectImpl()
        {
            throw new NotImplementedException();
        }
        protected override bool IsPrimitiveImpl()
        {
            throw new NotImplementedException();
        }
        protected override bool IsPointerImpl()
        {
            throw new NotImplementedException();
        }
        protected override bool IsByRefImpl()
        {
            throw new NotImplementedException();
        }
        protected override bool IsArrayImpl()
        {
            throw new NotImplementedException();
        }
        protected override System.Reflection.TypeAttributes 
                           GetAttributeFlagsImpl()
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.MemberInfo[] 
               GetMember(string name, System.Reflection.BindingFlags bindingAttr)
        {
            return base.GetMember(name, bindingAttr);
        }
        public override Type 
               GetNestedType(string name, System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.PropertyInfo[] 
               GetProperties(System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        protected override System.Reflection.PropertyInfo 
                  GetPropertyImpl(string name, System.Reflection.BindingFlags bindingAttr, 
                                  System.Reflection.Binder binder, Type returnType, Type[] types, 
                                  System.Reflection.ParameterModifier[] modifiers)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.MemberInfo[] 
               GetMembers(System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        public override Type[] GetNestedTypes(System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.EventInfo[] GetEvents()
        {
            return base.GetEvents();
        }
        public override Type[] GetInterfaces()
        {
            throw new NotImplementedException();
        }
        public override Type GetInterface(string name, bool ignoreCase)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.EventInfo[] 
               GetEvents(System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.FieldInfo[] 
               GetFields(System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.EventInfo 
               GetEvent(string name, System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.FieldInfo 
               GetField(string name, System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.MethodInfo[] 
               GetMethods(System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        protected override System.Reflection.MethodInfo 
                  GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr,
                                System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, 
                                Type[] types, System.Reflection.ParameterModifier[] modifiers)
        {
            throw new NotImplementedException();
        }
        public override System.Reflection.ConstructorInfo[] GetConstructors(System.Reflection.BindingFlags bindingAttr)
        {
            throw new NotImplementedException();
        }
        protected override System.Reflection.ConstructorInfo 
                  GetConstructorImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder,
                                     System.Reflection.CallingConventions callConvention, Type[] types, 
                                     System.Reflection.ParameterModifier[] modifiers)
        {
            throw new NotImplementedException();
        }
        public override Type BaseType
        {
            get { throw new NotImplementedException(); }
        }
        public override string AssemblyQualifiedName
        {
            get { throw new NotImplementedException(); }
        }
        public override string Namespace
        {
            get { throw new NotImplementedException(); }
        }
        public override string FullName
        {
            get { throw new NotImplementedException(); }
        }
        public override System.Reflection.Assembly Assembly
        {
            get { throw new NotImplementedException(); }
        }
        public override System.Reflection.Module Module
        {
            get { throw new NotImplementedException(); }
        }
        public override object 
               InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, 
                            System.Reflection.Binder binder, object target, object[] args, 
                            System.Reflection.ParameterModifier[] modifiers, 
                            System.Globalization.CultureInfo culture, string[] namedParameters)
        {
            throw new NotImplementedException();
        }
    }
    

    These are the properties gets that you need to implement

    • GUID
    • BaseType
    • AssemblyQualifiedName
    • Namespace
    • FullName
    • Assembly
    • Module
    • UnderlyingSystemType
    • Name

    These are the methods that you need to implement

    • InvokeMember
    • GetConstructorImpl
    • GetConstructors
    • GetMethodImpl
    • GetMethods
    • GetField
    • GetEvent
    • GetFields
    • GetEvents
    • GetInterface
    • GetInterfaces
    • GetEvents
    • GetNestedTypes
    • GetMembers
    • GetPropertyImpl
    • GetProperties
    • GetNestedType
    • GetMember
    • GetAttributeFlagsImpl
    • IsArrayImpl
    • IsByRefImpl
    • IsPointerImpl
    • IsPrimitiveImpl
    • IsCOMObjectImpl
    • GetElementType
    • GetCustomAttributes
    • HasElementTypeImpl
    • GetCustomAttributes
    • IsDefined

    As you can see, there are quite a few that you need to override in order to remove all the compilation errors, so either you have a really good reason for wanting to do this or you should think about overriding from another class/struct or just create a new class/struct.

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

Sidebar

Related Questions

I have a crystal report file I need make a tiny edit in. It
I need to make a WebCast presentation soon and need to do some whiteboarding
I need to make an application in .NET CF with different/single forms with a
I need to make an ArrayList of ArrayLists thread safe. I also cannot have
I need to make sure that user can run only one instance of my
I need to make a change to an ASP.NET web service written a couple
I need to make some reflective method calls in Java. Those calls will include
We need to make our enterprise ASP.NET/NHibernate browser-based application able to function when connected
I need to make changes to an in-use production database. Just adding a few
I need to make a piece of C# code interact through COM with all

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.