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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:12:32+00:00 2026-06-18T17:12:32+00:00

I have one assembly library that contains a class called Architecture. In another assembly

  • 0

I have one assembly library that contains a class called “Architecture”. In another assembly i have the class called “ArchitectureManager” that helps me to implement some specific class types of that current assembly.

Finally i have a third assembly project that needs “ArchitectureManager”, the problem comes how to hide “Architecture” from this third assembly project, since the second assembly needs it, also i cant just merge project two into project one.

Here is a snippet for further clarification:

//Assembly one
public class Architecture
{
}

//Assembly two
public class ArchitectureManager
{
  //Implement some Architecture class methods
}

//Asembly three needs ArchitectureManager but doesnt need to know about Architecture.
  • 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-18T17:12:34+00:00Added an answer on June 18, 2026 at 5:12 pm

    You can use the InternalsVisibleTo attribute for your assembly containing Architecture. You mark it as internal and allow it to be visible only to your other assembly.

    See this MSDN link: http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.internalsvisibletoattribute.aspx

    You can also see other questions tagged here on SO: https://stackoverflow.com/questions/tagged/internalsvisibleto

    Is there a specific reason why your Architecture object cannot be visible to other classes though? I rarely do this myself..

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

Sidebar

Related Questions

I have an assembly (.NET class library) that contains an object that implements EAP
I have a web solution that contains 5 class libraries and one asp.net web
I have a WorkerRole referencing a Class Library that calls some SOAP web services.
I have 2 projects: A Class Library that contains my classes/business logic A WPF
I have a class library that I added another class to that no matter
I have one table which contains events and dates, and another which contains the
I have a class library that I have written in C#.net. I want to
I have a few classes in the class library (separate assembly). I referenced it
I have a native library for Android that has some files that include NEON
In a web site I have a reference to a class library assembly. When

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.