Click here to Skip to main content
15,907,328 members
Home / Discussions / C#
   

C#

 
AnswerRe: Make property from base class protected Pin
Dustin Metzgar19-Oct-06 4:52
Dustin Metzgar19-Oct-06 4:52 
GeneralRe: Make property from base class protected Pin
topcatalpha19-Oct-06 5:15
topcatalpha19-Oct-06 5:15 
Questionusing the selectionformula property Pin
haseeb_saeed18-Oct-06 21:19
haseeb_saeed18-Oct-06 21:19 
Questionusing the selectionformula property for crystalreport viewer Pin
haseeb_saeed18-Oct-06 21:16
haseeb_saeed18-Oct-06 21:16 
Questionusing dbf in c# .net Pin
Amar Chaudhary18-Oct-06 19:53
Amar Chaudhary18-Oct-06 19:53 
AnswerRe: using dbf in c# .net Pin
baerten19-Oct-06 22:40
baerten19-Oct-06 22:40 
GeneralRe: using dbf in c# .net Pin
Amar Chaudhary19-Oct-06 23:48
Amar Chaudhary19-Oct-06 23:48 
GeneralRe: using dbf in c# .net Pin
mcgahanfl20-Oct-06 6:06
mcgahanfl20-Oct-06 6:06 
GeneralRe: using dbf in c# .net Pin
mcgahanfl20-Oct-06 6:07
mcgahanfl20-Oct-06 6:07 
QuestionDownload file from http address with authentication Pin
haritus18-Oct-06 19:52
haritus18-Oct-06 19:52 
AnswerRe: Download file from http address with authentication Pin
Le centriste19-Oct-06 4:29
Le centriste19-Oct-06 4:29 
QuestionRequired Field Validator Pin
bhanu1234518-Oct-06 19:31
bhanu1234518-Oct-06 19:31 
Questionvisual studio express - stand alone app ? [modified] Pin
bryce18-Oct-06 16:27
bryce18-Oct-06 16:27 
AnswerRe: visual studio express - stand alone app ? Pin
Dave Kreskowiak18-Oct-06 17:51
mveDave Kreskowiak18-Oct-06 17:51 
GeneralRe: visual studio express - stand alone app ? Pin
bryce18-Oct-06 18:25
bryce18-Oct-06 18:25 
AnswerRe: visual studio express - stand alone app ? Pin
Guffa18-Oct-06 18:34
Guffa18-Oct-06 18:34 
QuestionSending WM_CONTEXTMENU Pin
cmaissan18-Oct-06 16:23
cmaissan18-Oct-06 16:23 
QuestionHow to Check when a computer is connected to internet Pin
FlyOnIT18-Oct-06 15:55
FlyOnIT18-Oct-06 15:55 
AnswerRe: How to Check when a computer is connected to internet Pin
seee sharp19-Oct-06 21:46
seee sharp19-Oct-06 21:46 
GeneralRe: How to Check when a computer is connected to internet Pin
FlyOnIT23-Oct-06 6:29
FlyOnIT23-Oct-06 6:29 
QuestionStructLayoutAttribute and type safety Pin
Vega0218-Oct-06 14:30
Vega0218-Oct-06 14:30 
GeneralRe: StructLayoutAttribute and type safety Pin
Werdna19-Oct-06 7:03
Werdna19-Oct-06 7:03 
GeneralRe: StructLayoutAttribute and type safety Pin
Vega0219-Oct-06 16:48
Vega0219-Oct-06 16:48 
The CLR will not allow object references to overlap value types using FieldOffset, but it will allow object references to overlap other object references.

But I think I just answered my own question. Changing the security permission set to require assembly verification causes the runtime to throw an exception when it tries to load the MyStruct type.

Could not load type 'StructLayout.MyStruct' from assembly 'StructLayout, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' because objects overlapped at offset 4 and the assembly must be verifiable.

So it looks like the runtime only allows you to do this only if you already had the proper security permission set to execute unsafe code to begin with, which I think should be fine. Still somewhat strange that the peverify utility says that the assembly is verifiable, though.
QuestionProcess.ProccessName coming up idle in seperate thread. Pin
Sunset Towers18-Oct-06 12:02
Sunset Towers18-Oct-06 12:02 
GeneralRe: Process.ProccessName coming up idle in seperate thread. [modified] Pin
Anthony Mushrow18-Oct-06 13:55
professionalAnthony Mushrow18-Oct-06 13:55 

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.