Click here to Skip to main content
15,895,142 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Need a way to map enum values to human friendly strings Pin
nicknotyet5-Dec-06 10:51
nicknotyet5-Dec-06 10:51 
GeneralRe: Need a way to map enum values to human friendly strings Pin
Dan Neely5-Dec-06 10:55
Dan Neely5-Dec-06 10:55 
GeneralRe: Need a way to map enum values to human friendly strings Pin
George L. Jackson5-Dec-06 10:56
George L. Jackson5-Dec-06 10:56 
GeneralRe: Need a way to map enum values to human friendly strings Pin
nicknotyet5-Dec-06 11:16
nicknotyet5-Dec-06 11:16 
GeneralRe: Need a way to map enum values to human friendly strings Pin
Scott Dorman5-Dec-06 13:59
professionalScott Dorman5-Dec-06 13:59 
GeneralRe: Need a way to map enum values to human friendly strings Pin
nicknotyet6-Dec-06 5:18
nicknotyet6-Dec-06 5:18 
Question'OptionalField' attribute Pin
Hendrik Debedts5-Dec-06 8:16
Hendrik Debedts5-Dec-06 8:16 
AnswerRe: 'OptionalField' attribute Pin
Scott Dorman5-Dec-06 14:04
professionalScott Dorman5-Dec-06 14:04 
It is part of the changes made to serialization in .NET 2.0 to help alleviate the versioning issues that can be encountered when dealing with serialized objects.

If you have version 1.0 of your product that serializes an object and then you create version 2.0 of your product that adds new fields, you would get an exception when you tried to deserialize the 1.0 version of the object. By marking the field with the OptionalField attribute, the object will be deserialized properly and the "missing" fields will be null.

-----------------------------
In just two days, tomorrow will be yesterday.

GeneralRe: 'OptionalField' attribute [modified] Pin
Hendrik Debedts5-Dec-06 22:32
Hendrik Debedts5-Dec-06 22:32 
AnswerRe: 'OptionalField' attribute Pin
Hendrik Debedts6-Dec-06 0:19
Hendrik Debedts6-Dec-06 0:19 
GeneralFileSystemWatcher question Pin
Alsvha5-Dec-06 5:20
Alsvha5-Dec-06 5:20 
AnswerRe: FileSystemWatcher question Pin
Stuart Wells5-Dec-06 6:05
Stuart Wells5-Dec-06 6:05 
GeneralRe: FileSystemWatcher question Pin
Hendrik Debedts5-Dec-06 8:06
Hendrik Debedts5-Dec-06 8:06 
GeneralRe: FileSystemWatcher question Pin
Alsvha5-Dec-06 8:22
Alsvha5-Dec-06 8:22 
GeneralRe: FileSystemWatcher question Pin
Luc Pattyn5-Dec-06 12:11
sitebuilderLuc Pattyn5-Dec-06 12:11 
GeneralRe: FileSystemWatcher question Pin
Alsvha5-Dec-06 20:49
Alsvha5-Dec-06 20:49 
GeneralRe: FileSystemWatcher question Pin
Dave Kreskowiak5-Dec-06 15:00
mveDave Kreskowiak5-Dec-06 15:00 
GeneralRe: FileSystemWatcher question Pin
Alsvha5-Dec-06 20:49
Alsvha5-Dec-06 20:49 
QuestionRichTextBox VS2005 Pin
Jon Stroh4-Dec-06 17:47
Jon Stroh4-Dec-06 17:47 
AnswerRe: RichTextBox VS2005 Pin
Jon Stroh4-Dec-06 18:20
Jon Stroh4-Dec-06 18:20 
QuestionPowerPoint effects: How to figure out a current effect name within SlideShowNextBuild event handler? Pin
wasek20014-Dec-06 2:48
wasek20014-Dec-06 2:48 
GeneralProcessname Pin
Alsvha4-Dec-06 1:42
Alsvha4-Dec-06 1:42 
QuestionGSM Modem Pin
Waskira3-Dec-06 6:48
Waskira3-Dec-06 6:48 
QuestionApproximating cursor position Pin
Tomas(cz)3-Dec-06 6:10
Tomas(cz)3-Dec-06 6:10 
AnswerRe: Approximating cursor position Pin
DavidNohejl5-Dec-06 5:54
DavidNohejl5-Dec-06 5:54 

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.