Click here to Skip to main content
15,918,624 members
Home / Discussions / C#
   

C#

 
AnswerRe: DLL Entry Point [modified] Pin
Luc Pattyn28-Jan-09 6:46
sitebuilderLuc Pattyn28-Jan-09 6:46 
GeneralRe: DLL Entry Point Pin
mahmoud babli29-Jan-09 3:42
mahmoud babli29-Jan-09 3:42 
GeneralRe: DLL Entry Point Pin
mahmoud babli30-Jan-09 21:37
mahmoud babli30-Jan-09 21:37 
AnswerRe: DLL Entry Point Pin
J4amieC28-Jan-09 5:48
J4amieC28-Jan-09 5:48 
GeneralRe: DLL Entry Point Pin
mahmoud babli29-Jan-09 3:43
mahmoud babli29-Jan-09 3:43 
Question.NET Serialization question Pin
Ennis Ray Lynch, Jr.28-Jan-09 3:53
Ennis Ray Lynch, Jr.28-Jan-09 3:53 
AnswerRe: .NET Serialization question Pin
Mark Churchill28-Jan-09 12:02
Mark Churchill28-Jan-09 12:02 
GeneralRe: .NET Serialization question Pin
Ennis Ray Lynch, Jr.28-Jan-09 12:37
Ennis Ray Lynch, Jr.28-Jan-09 12:37 
Yes, I do and I also realize that .NET serialization does not support generics requiring custom serialization and it just really irks me that something as simple as a Nullable type requires custom code.

Mark Churchill wrote:
Just checking the obvious, but you do realise that bool? is shorthand for the struct System.Nullable< bool> yeah?



I don't think so because null comes back just fine.
Mark Churchill wrote:
The complier is probably selecting the AddValue(string, bool) overload, and putting a bool in the ourput stream.


Check the code as I did. GetValue is returning null when AddValue has added a null and typeof(object) is actually returning a string not a boxed type. I attempted info.GetValue(..., typeof(object)).GetType() to locate.

Mark Churchill wrote:
I would suggest that info.GetValue(..., typeof(object)) is actually returning a boxed bool, which in the watch window looks a lot like a string (as .ToString() is called). You can't cast directly from a boxed boolean to a bool? - you will have to go with new bool?(GetValue(bool)).



This thing is really just messed up beyond recognition. I can write code to account for it without difficultly but I shouldn't have to. My post is with the hopes of finding some expert in serialization that can go aha, Ennis, you missed this hidden special feature in .NET that does it like we all expected it to work.


Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.


If you don't ask questions the answers won't stand in your way.


Most of this sig is for Google, not ego.


GeneralRe: .NET Serialization question Pin
Mark Churchill28-Jan-09 13:34
Mark Churchill28-Jan-09 13:34 
GeneralRe: .NET Serialization question Pin
Ennis Ray Lynch, Jr.28-Jan-09 15:27
Ennis Ray Lynch, Jr.28-Jan-09 15:27 
GeneralRe: .NET Serialization question Pin
Mark Churchill28-Jan-09 16:06
Mark Churchill28-Jan-09 16:06 
GeneralRe: .NET Serialization question Pin
Ennis Ray Lynch, Jr.29-Jan-09 2:35
Ennis Ray Lynch, Jr.29-Jan-09 2:35 
QuestionHow to Change DataGridBoolColumn's greyed state and checked to DataGridBoolColumn's greyed state and unchecked ? Pin
JuergenLissmann28-Jan-09 3:49
JuergenLissmann28-Jan-09 3:49 
Question[newbie] function to return MAX + 1 from primary key Pin
jon-8028-Jan-09 3:38
professionaljon-8028-Jan-09 3:38 
AnswerRe: [newbie] function Pin
SeMartens28-Jan-09 3:45
SeMartens28-Jan-09 3:45 
AnswerRe: [newbie] function Pin
Karmendra Suthar28-Jan-09 3:54
Karmendra Suthar28-Jan-09 3:54 
GeneralRe: [newbie] function Pin
jon-8028-Jan-09 5:59
professionaljon-8028-Jan-09 5:59 
AnswerRe: [newbie] function to return MAX + 1 from primary key Pin
Wendelius28-Jan-09 4:33
mentorWendelius28-Jan-09 4:33 
AnswerRe: [newbie] function to return MAX + 1 from primary key Pin
riced28-Jan-09 5:10
riced28-Jan-09 5:10 
QuestionRatio Textbox Validation Pin
honeyashu28-Jan-09 3:37
honeyashu28-Jan-09 3:37 
AnswerRe: Ratio Textbox Validation [modified] Pin
DaveyM6928-Jan-09 3:56
professionalDaveyM6928-Jan-09 3:56 
GeneralRe: Ratio Textbox Validation Pin
honeyashu28-Jan-09 20:31
honeyashu28-Jan-09 20:31 
GeneralRe: Ratio Textbox Validation Pin
DaveyM6929-Jan-09 0:11
professionalDaveyM6929-Jan-09 0:11 
QuestionJPEG Compression in C# Pin
SimpleData28-Jan-09 3:26
SimpleData28-Jan-09 3:26 
AnswerRe: JPEG Compression in C# Pin
User 665828-Jan-09 3:30
User 665828-Jan-09 3:30 

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.