473,324 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Sub system protection

Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub systems
in the same project?
Thanks,
Sharon.
Nov 16 '06 #1
5 1888
Could you please elaborate some on what is it you want to do? What
exactly do you mean by sub system, a different assembly, a different
thread? Please just give a brief description of what you are trying to
create.

Sharon wrote:
Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub systems
in the same project?
Thanks,
Sharon.
Nov 16 '06 #2
I want to create a sub system which will expose only a sub system facade.
I want all the sub system classes to be hidden inside the sub system.
The only way i know to do this, is to give the internal access level to each
class
in the sub system, except the facade, and compile it to a separate assembly.
The question is, is there a way for different sub systems to reside in the
same assembly
and yet for each sub system classes to be hidden inside their sub system.
"justin creasy" <ju***********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Could you please elaborate some on what is it you want to do? What
exactly do you mean by sub system, a different assembly, a different
thread? Please just give a brief description of what you are trying to
create.

Sharon wrote:
>Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub
systems
in the same project?
Thanks,
Sharon.

Nov 16 '06 #3
I can think of two ideas right away that allow you to hide the details
of a class. Declaring variables and methods private will help to hide
them, and using different namespaces for classes also helps to seperate
them. I think what you want to do is use a different namespace for each
sub system, then methods in one sub system would not have public access
to attributes of another sub system. If this is not what you mean I'm
sorry, but I'm still a little confused on your goals. "sub system" is a
very ambiguous term.

On Nov 16, 11:32 am, "Sharon" <n...@void.nothingwrote:
I want to create a sub system which will expose only a sub system facade.
I want all the sub system classes to be hidden inside the sub system.
The only way i know to do this, is to give the internal access level to each
class
in the sub system, except the facade, and compile it to a separate assembly.
The question is, is there a way for different sub systems to reside in the
same assembly
and yet for each sub system classes to be hidden inside their sub system.

"justin creasy" <justin.cre...@gmail.comwrote in messagenews:11**********************@m73g2000cwd.g ooglegroups.com...
Could you please elaborate some on what is it you want to do? What
exactly do you mean by sub system, a different assembly, a different
thread? Please just give a brief description of what you are trying to
create.
Sharon wrote:
Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub
systems
in the same project?
Thanks,
Sharon.
Nov 16 '06 #4
Hey Justin.
First, thanks for helping me out here.
Separating sub systems using different namespaces,
will not prevent one sub system from accessing another sub system classes.
Cause a sub system classes are not really hidden.

Below is the definition of a sub system.
It does not state that a sub system must be a "black box", but i want it to
be.

----------------------------------------------------------------------------------
A subsystem is a chunk of cohesive classes that can be compiled, linked, and
tested separately
Robert C. Martin gives three rules of thumb that may help to identify
subsystems:
To be cohesive, the classes in a [subsystem]
1. Must be closed together
2. Must be reused together
3. Should share a common function or policy
Classes are closed together, if a change to the application effects either
all or none of them.
------------------------------------------------------------------------------------
"justin creasy" <ju***********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
>I can think of two ideas right away that allow you to hide the details
of a class. Declaring variables and methods private will help to hide
them, and using different namespaces for classes also helps to seperate
them. I think what you want to do is use a different namespace for each
sub system, then methods in one sub system would not have public access
to attributes of another sub system. If this is not what you mean I'm
sorry, but I'm still a little confused on your goals. "sub system" is a
very ambiguous term.

On Nov 16, 11:32 am, "Sharon" <n...@void.nothingwrote:
>I want to create a sub system which will expose only a sub system facade.
I want all the sub system classes to be hidden inside the sub system.
The only way i know to do this, is to give the internal access level to
each
class
in the sub system, except the facade, and compile it to a separate
assembly.
The question is, is there a way for different sub systems to reside in
the
same assembly
and yet for each sub system classes to be hidden inside their sub system.

"justin creasy" <justin.cre...@gmail.comwrote in
messagenews:11**********************@m73g2000cwd. googlegroups.com...
Could you please elaborate some on what is it you want to do? What
exactly do you mean by sub system, a different assembly, a different
thread? Please just give a brief description of what you are trying to
create.
Sharon wrote:
Hi all.
To prevent access to a sub system internal types,
is it necessary to create the sub system in a different project,
and use the internal access level?
Or is there another way that will enable the creation of several sub
systems
in the same project?
Thanks,
Sharon.

Nov 17 '06 #5
"Sharon" <no*****@null.voidwrote in message
news:ex**************@TK2MSFTNGP03.phx.gbl...
Hey Justin.
First, thanks for helping me out here.
Separating sub systems using different namespaces,
will not prevent one sub system from accessing another sub system classes.
Cause a sub system classes are not really hidden.
Afaik, all you can do (besides create a seperate dll) is create a private
class inside a class.

Michael
Nov 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Naeem Sarfraz | last post by:
I understand this file is under protection but how do I remove it from the 'detected dependencies' in the Installer project. The error message: 'shdocvw.dll' should be excluded because its...
9
by: Howard | last post by:
I am currently looking at the various packages that are available for software protection. I have a particular question that I'd welcome your feedback on. Background info: I work for a company...
3
by: nathanvi | last post by:
Hi, i've a mdb access file and i launched Tools->Protection->SettingAutomaticProtection (sorry if translation isn't fine but the language in my PC is not english :-( ) two weeks ago .. In other...
2
by: I am Sam | last post by:
Can someone tell me what is wrong with this web.config file? Whenever I try to open a file in the protected directory "Administration" I get an error message indicating that the <system.web>...
9
by: John | last post by:
Hi, I would like to protect my software from copying. What are best tools for it (hardware protection is not an option), do you have some reccomendation for protection or third party software...
19
by: John | last post by:
I would like to use some third party software for copy protection, software that prevents from copy paste program to another computer (not obfuscator). I am looking for some good solution (hardware...
5
by: Jerry J | last post by:
I want to use the System.Drawing.Image class. According to the help file, this is an abstract base class. Because it is supposedly abstract, I created another class that inherits from it. However,...
11
by: justsome_newbie | last post by:
Hello experts! I'm trying to send mail from my C# Asp.Net webpage. I used the code samples at www.systemnetmail.com but it still won't send. I think the problem is on the iis or exchange server...
0
by: dba | last post by:
Hi folks, I would just like to share with you SQL CodeSecure, a newly released database protection and auditing tool from SqlLabs: SQL CodeSecure provides ultimate protection from unauthorized...
21
by: omkar pangarkar | last post by:
Hi all, I have two simple hello world programs one using printf() and other using write() --prog 1-- #include<stdio.h> #include<stdlib.h> int main() { printf("Hello"); /* up to here...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.