Click here to Skip to main content
15,915,759 members
Home / Discussions / C#
   

C#

 
GeneralRe: Container Object reference in Contained class Pin
Heath Stewart6-Aug-04 1:36
protectorHeath Stewart6-Aug-04 1:36 
Generalcopy NTF File Permission Pin
Anonymous5-Aug-04 11:11
Anonymous5-Aug-04 11:11 
GeneralRe: copy NTF File Permission Pin
Heath Stewart5-Aug-04 11:48
protectorHeath Stewart5-Aug-04 11:48 
GeneralRe: copy NTF File Permission Pin
Dave Kreskowiak6-Aug-04 3:25
mveDave Kreskowiak6-Aug-04 3:25 
GeneralReflection and System.Windows.Forms.Form Pin
Wizard_015-Aug-04 8:25
Wizard_015-Aug-04 8:25 
GeneralRe: Reflection and System.Windows.Forms.Form Pin
Heath Stewart5-Aug-04 8:37
protectorHeath Stewart5-Aug-04 8:37 
GeneralRe: Reflection and System.Windows.Forms.Form Pin
Wizard_015-Aug-04 13:47
Wizard_015-Aug-04 13:47 
GeneralRe: Reflection and System.Windows.Forms.Form Pin
Heath Stewart6-Aug-04 1:33
protectorHeath Stewart6-Aug-04 1:33 
It should. There could be another permission that's demanded after StrongNameIdentityPermission, but only trying it or examining the IL will tell you that.

Assemblies should always be strongly named, anyway. It's really so easy that there's no reason not to do it. It also helps keep your code secure since the assembly is signed with your private key (so keep it private!).

Look at it this way: if you use a type from another assembly without signing, you're essentially linking against the type MyNamespace.MyClass, MyAssembly, Version=1.0.0.0, Culture=neutral; anyone could replace that and do something malicious. If you sign your assembly (give it a strong name), your type is now MyNamespace.MyClass, MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789abcdef. Since only you have that signing key, only you can produce that public key token. This isn't 100% secure (someone could disassemble and change the calling assembly), but nothing always is (native code is better, but not infalable).

As I mentioned earlier, too, it's a good idea to use the same key pair for all your assemblies, or at least for a given solution. It can't be traced back to you like it could if you additionally signed with an X.509 certificate (authenticode; like ActiveX uses), but it is an identifying mark in the way that only you (or your organization - or maybe just the build master) have the private key.

 

Microsoft MVP, Visual C#
My Articles
GeneralSetting the System Cursor Pin
betterc5-Aug-04 8:16
betterc5-Aug-04 8:16 
GeneralRe: Setting the System Cursor Pin
Heath Stewart5-Aug-04 8:33
protectorHeath Stewart5-Aug-04 8:33 
GeneralRe: Setting the System Cursor Pin
Tom Larsen5-Aug-04 12:06
Tom Larsen5-Aug-04 12:06 
GeneralRe: Setting the System Cursor Pin
betterc5-Aug-04 12:47
betterc5-Aug-04 12:47 
GeneralStrange Thread problem Pin
Guinness4Strength5-Aug-04 7:43
Guinness4Strength5-Aug-04 7:43 
GeneralRe: Strange Thread problem Pin
leppie5-Aug-04 13:31
leppie5-Aug-04 13:31 
GeneralRe: Strange Thread problem Pin
Guinness4Strength5-Aug-04 15:14
Guinness4Strength5-Aug-04 15:14 
GeneralRe: Strange Thread problem Pin
leppie5-Aug-04 19:18
leppie5-Aug-04 19:18 
GeneralRe: Strange Thread problem Pin
Guinness4Strength6-Aug-04 3:03
Guinness4Strength6-Aug-04 3:03 
GeneralBizarre remoting problem Pin
Judah Gabriel Himango5-Aug-04 7:25
sponsorJudah Gabriel Himango5-Aug-04 7:25 
GeneralRe: Bizarre remoting problem Pin
Heath Stewart5-Aug-04 8:44
protectorHeath Stewart5-Aug-04 8:44 
GeneralRe: Bizarre remoting problem Pin
Judah Gabriel Himango5-Aug-04 10:10
sponsorJudah Gabriel Himango5-Aug-04 10:10 
GeneralRe: Bizarre remoting problem Pin
Heath Stewart5-Aug-04 10:39
protectorHeath Stewart5-Aug-04 10:39 
GeneralRe: Bizarre remoting problem Pin
Judah Gabriel Himango5-Aug-04 10:54
sponsorJudah Gabriel Himango5-Aug-04 10:54 
GeneralRe: Bizarre remoting problem Pin
Tom Larsen5-Aug-04 12:17
Tom Larsen5-Aug-04 12:17 
GeneralRe: Bizarre remoting problem Pin
scadaguy6-Aug-04 6:30
scadaguy6-Aug-04 6:30 
GeneralConverting .rc files to .resx Pin
BrcKcc5-Aug-04 7:20
BrcKcc5-Aug-04 7:20 

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.