Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
QuestionClass library assembly permissions, best practice Pin
harleydk28-Nov-07 22:11
harleydk28-Nov-07 22:11 
Hello,

I wish to incorporate some assembly security attributes to my class library. So I add something like this to my class library namespace:


[assembly:System.Net.SocketPermission(SecurityAction.RequestMinimum)]
namespace olapWeb_Controls
{

So on and so forth. Yet I have many classes in my class library - all of them reference the namespace. Apparently I can add permission by simple adding the directives to just one of the classes - but I would rather I added them one central place, rather than in just one class (which might get changed by someone else than me). Adding the same permissions to every single class seems like overkill. What should my best practice be?

Many thanks,

Morten,
Denmark

Questionhow to add new row to an exiting data table...? Pin
Pankaj - Joshi28-Nov-07 21:26
Pankaj - Joshi28-Nov-07 21:26 
AnswerRe: how to add new row to an exiting data table...? Pin
Thaer Hamael28-Nov-07 21:33
Thaer Hamael28-Nov-07 21:33 
GeneralRe: how to add new row to an exiting data table...? Pin
Pankaj - Joshi28-Nov-07 22:09
Pankaj - Joshi28-Nov-07 22:09 
GeneralRe: how to add new row to an exiting data table...? Pin
Pankaj - Joshi28-Nov-07 22:12
Pankaj - Joshi28-Nov-07 22:12 
GeneralRe: how to add new row to an exiting data table...? Pin
Mr. Candyman28-Nov-07 23:03
Mr. Candyman28-Nov-07 23:03 
Jokesorry, duplicated message :-P Pin
Mr. Candyman28-Nov-07 23:05
Mr. Candyman28-Nov-07 23:05 
QuestionActive Control Pin
Thaer Hamael28-Nov-07 21:22
Thaer Hamael28-Nov-07 21:22 
QuestionDataGridView Pin
baerten28-Nov-07 21:19
baerten28-Nov-07 21:19 
AnswerRe: DataGridView Pin
Thaer Hamael28-Nov-07 21:39
Thaer Hamael28-Nov-07 21:39 
GeneralRe: DataGridView Pin
baerten28-Nov-07 21:45
baerten28-Nov-07 21:45 
GeneralRe: DataGridView Pin
Pankaj - Joshi28-Nov-07 22:19
Pankaj - Joshi28-Nov-07 22:19 
QuestionRun a C# program in Dos window Pin
.NET- India 28-Nov-07 21:12
.NET- India 28-Nov-07 21:12 
QuestionRe: Run a C# program in Dos window Pin
Maharishi Bhatia28-Nov-07 21:20
Maharishi Bhatia28-Nov-07 21:20 
AnswerRe: Run a C# program in Dos window Pin
baerten28-Nov-07 21:21
baerten28-Nov-07 21:21 
GeneralRe: Run a C# program in Dos window Pin
.NET- India 28-Nov-07 21:32
.NET- India 28-Nov-07 21:32 
AnswerRe: Run a C# program in Dos window Pin
m@u28-Nov-07 21:22
m@u28-Nov-07 21:22 
AnswerRe: Run a C# program in Dos window Pin
sreejith ss nair28-Nov-07 22:35
sreejith ss nair28-Nov-07 22:35 
AnswerRe: Run a C# program in Dos window Pin
PIEBALDconsult29-Nov-07 3:12
mvePIEBALDconsult29-Nov-07 3:12 
QuestionCustomControl.Paint Not Firing Pin
Sukhjinder_K28-Nov-07 21:02
Sukhjinder_K28-Nov-07 21:02 
AnswerRe: CustomControl.Paint Not Firing Pin
m@u28-Nov-07 21:11
m@u28-Nov-07 21:11 
GeneralThanks it Worked... Pin
Sukhjinder_K28-Nov-07 21:55
Sukhjinder_K28-Nov-07 21:55 
AnswerRe: CustomControl.Paint Not Firing Pin
Luc Pattyn28-Nov-07 22:01
sitebuilderLuc Pattyn28-Nov-07 22:01 
GeneralTwo YoLabels. How??? Pin
Sukhjinder_K28-Nov-07 23:19
Sukhjinder_K28-Nov-07 23:19 
GeneralRe: Two YoLabels. How??? Pin
Luc Pattyn29-Nov-07 0:06
sitebuilderLuc Pattyn29-Nov-07 0:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.