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

The Archive Base Latest Questions

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

I have a Fixed Point type by subclassing Type (refer to this post ).

  • 0

I have a Fixed Point type by subclassing Type (refer to this post). I could build this project name it a.dll.

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

I have another project b.dll that uses the System.FixedPointDataType that is in a.dll.
After referencing a.dll in project b, when I tried to compile the file abc.cs in project b, I got this error.

Error   2   'System.FixedPointDataType' is inaccessible due to its protection level 
abc.cs

What might be wrong?

ADDED

I needed to add public and give the full name with namespaces – System.FixedPointDataType. I got error even after the modification, but when I rebuilt the whole solution, and the error is removed. Thanks for the comments and answers.

  • 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-23T18:08:54+00:00Added an answer on May 23, 2026 at 6:08 pm

    Your class is not declared public; or it was before you changed your post and rebuilt the project.

    But I stand by the earlier comments that you should not subclass Type or add members to namespace System.

    If the two projects are in the same solution, make sure you add a reference to the project, not just to the DLL that is the output of the project. If you don’t add a reference to the project, VS won’t know what order to build your solution in, and you may be referencing outdated versions.

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

Sidebar

Related Questions

I need to make fixed point number class inherit from System.Type. class FixedPoint :
I have a problem with IE. I have a fixed div like this: #fixed
I have this code: <ComboBox Width=100 ItemsSource={Binding FontList} x:Name=fontComboFast> <ComboBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel /> </ItemsPanelTemplate>
I am a little lost at this point in my project. I work for
I have this type definition: data Operace = Op (Int->Int->Int) String (Int->Int->Int) deriving Show
document.getElementsByName('name').value returns undefined . I don't have the foggiest idea as to why this
EDIT: I have fixed all but two warnings now, so thank you all for
I can't make td Date to have fixed height. If there is less in
Header, footer and sidebars have fixed position. In the center a content area with
I have a fixed-length data file need to persistence into database. I use 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.