Click here to Skip to main content
15,921,179 members
Home / Discussions / C#
   

C#

 
GeneralRe: Retrieve Method Name during Runtime Pin
S. Senthil Kumar3-Jun-05 4:05
S. Senthil Kumar3-Jun-05 4:05 
Generalnull object Pin
george ivanov3-Jun-05 3:27
george ivanov3-Jun-05 3:27 
GeneralRe: null object Pin
Marc Clifton3-Jun-05 3:31
mvaMarc Clifton3-Jun-05 3:31 
GeneralRe: null object Pin
Judah Gabriel Himango3-Jun-05 4:30
sponsorJudah Gabriel Himango3-Jun-05 4:30 
GeneralExport Report To txt file Pin
sevan3-Jun-05 3:21
sevan3-Jun-05 3:21 
GeneralExport to excel data from ultrawebgrid each row contain one worksheet Pin
sunilmskr3-Jun-05 2:33
sunilmskr3-Jun-05 2:33 
GeneralFetching LAN and Dial up connection name into LISTBOX Pin
ksanju10003-Jun-05 2:01
ksanju10003-Jun-05 2:01 
GeneralIdentical types not equal?! Pin
shambulator3-Jun-05 1:10
shambulator3-Jun-05 1:10 
I've implemented a custom UITypeEditor for a collection-based property (PropertyInfoCollection). In the GetEditStyle and EditValue methods, I check the type of the value passed (using ITypeDescriptorContext.PropertyDescriptor and value.GetType() in GetEditStyle and EditValue, respectively) and compare them against typeof( PropertyInfoCollection ) using Type.Equals to ensure that only the correct types are edited. Although the two sides of the comparison should be the same type (they do have the same names, versions, assemblies, public key tokens etc. but not the same hash codes...) the test for equality fails if I close the solution, reopen it and try to edit the property. Forcibly casting the property value in EditValue from object to PropertyInfoCollection also results in an InvalidCastException. The test succeeds again (and the cast works) if I rebuild the solution.

Should I be checking types differently? The different hash codes reported for (ostensibly) the same type suggest that the type is perhaps getting loaded twice, and the two different Type instances are not equated. Is this even possible?
GeneralRe: Identical types not equal?! Pin
Roger Alsing3-Jun-05 4:11
Roger Alsing3-Jun-05 4:11 
GeneralRe: Identical types not equal?! Pin
shambulator5-Jun-05 21:54
shambulator5-Jun-05 21:54 
QuestionHow to avoid empty node while doing xml serialization Pin
Shiby3-Jun-05 0:46
Shiby3-Jun-05 0:46 
Generalconstant log file size Pin
Xiao_M3-Jun-05 0:12
Xiao_M3-Jun-05 0:12 
GeneralRe: constant log file size Pin
Dave Kreskowiak3-Jun-05 3:58
mveDave Kreskowiak3-Jun-05 3:58 
QuestionHow can I disable ALT+F4 closing in a Windows Form? Pin
pubududilena2-Jun-05 22:58
pubududilena2-Jun-05 22:58 
AnswerRe: How can I disable ALT+F4 closing in a Windows Form? Pin
mav.northwind2-Jun-05 23:09
mav.northwind2-Jun-05 23:09 
AnswerRe: How can I disable ALT+F4 closing in a Windows Form? Pin
MoustafaS3-Jun-05 5:07
MoustafaS3-Jun-05 5:07 
QuestionHow to generate SQL Script for Tables with data in a Database ? Pin
pubududilena2-Jun-05 22:32
pubududilena2-Jun-05 22:32 
AnswerRe: How to generate SQL Script for Tables with data in a Database ? Pin
Colin Angus Mackay2-Jun-05 22:46
Colin Angus Mackay2-Jun-05 22:46 
GeneralRe: How to generate SQL Script for Tables with data in a Database ? Pin
pubududilena2-Jun-05 22:55
pubududilena2-Jun-05 22:55 
GeneralRe: How to generate SQL Script for Tables with data in a Database ? Pin
Brian Van Beek3-Jun-05 10:26
Brian Van Beek3-Jun-05 10:26 
GeneralConnect crystal report to database Pin
Ercoolz2-Jun-05 20:20
Ercoolz2-Jun-05 20:20 
GeneralRe: Connect crystal report to database Pin
pubududilena2-Jun-05 22:51
pubududilena2-Jun-05 22:51 
GeneralRe: Connect crystal report to database Pin
Anonymous2-Jun-05 23:51
Anonymous2-Jun-05 23:51 
GeneralRe: Connect crystal report to database Pin
Anonymous20-Jun-05 3:11
Anonymous20-Jun-05 3:11 
GeneralImage.FromFile() Pin
Os Sutrisno2-Jun-05 19:20
Os Sutrisno2-Jun-05 19: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.