Click here to Skip to main content
12,507,674 members (53,290 online)

.NET Framework

 
AnswerRe: language conversion problem Pin
tumbledDown2earth4-Apr-13 22:46
membertumbledDown2earth4-Apr-13 22:46 
QuestionHow to make calender using dynamic table without using ajax calender Pin
navkansal2929-Mar-13 19:35
membernavkansal2929-Mar-13 19:35 
AnswerRe: How to make calender using dynamic table without using ajax calender Pin
Richard MacCutchan29-Mar-13 23:02
mvpRichard MacCutchan29-Mar-13 23:02 
QuestionUsing a WPF Control with WinForms Pin
Pasan14829-Mar-13 4:55
memberPasan14829-Mar-13 4:55 
AnswerRe: Using a WPF Control with WinForms Pin
Eddy Vluggen31-Mar-13 1:20
mvpEddy Vluggen31-Mar-13 1:20 
QuestionDevExpress Ribbon Pin
nagham_4ng27-Mar-13 22:32
membernagham_4ng27-Mar-13 22:32 
AnswerRe: DevExpress Ribbon Pin
Dave Kreskowiak28-Mar-13 2:02
mvpDave Kreskowiak28-Mar-13 2:02 
AnswerRe: DevExpress Ribbon Pin
Vasudevan Deepak Kumar29-Mar-13 6:23
memberVasudevan Deepak Kumar29-Mar-13 6:23 
QuestionHow to Identify .Net Dll's/Assemblies from Project supporting all Dll types? Pin
Vishal_K8927-Mar-13 1:43
memberVishal_K8927-Mar-13 1:43 
GeneralRe: How to Identify .Net Dll's/Assemblies from Project supporting all Dll types? Pin
Richard MacCutchan27-Mar-13 3:50
mvpRichard MacCutchan27-Mar-13 3:50 
AnswerRe: How to Identify .Net Dll's/Assemblies from Project supporting all Dll types? Pin
jschell27-Mar-13 8:53
memberjschell27-Mar-13 8:53 
QuestionHow make steganography in video (.AVI) Pin
Khairul Imam25-Mar-13 11:40
memberKhairul Imam25-Mar-13 11:40 
AnswerRe: How make steganography in video (.AVI) Pin
Dave Kreskowiak25-Mar-13 12:51
mvpDave Kreskowiak25-Mar-13 12:51 
QuestionSerialization and object versioning Pin
Abyss25-Mar-13 9:48
memberAbyss25-Mar-13 9:48 
If I want to serialize an object I have to use [Serializable] attribute and all member variables will be written to the file. What I don't know how to do versioning e.g. if I add a new member variable (rename a variable or just remove a variable) to the object e.g. m_dRadius and then I open (deserialize) the file how can I determine that the variable was initialized during the load or not.

I know that there are version tolerant approaches and I can mark variables with [OptionalField(VersionAdded = 1)] attribute. If I open an old file the framework will ignore this optional (new variable) and it will be just zero/null. But again how can I determine if the variable is initialized by load to zero or it was ignored.

I can write the class/object version number to the stream. Use the ISerializable approach and in the constructor(SerializationInfo oInfo, StreamingContext context) method read this version number. This will exactly tell me what is the class version in the stream.

However I expected that such kind of versioning is already implemented by the streaming framework. I tried to obtain the Assembly version from the SerializationInfo but it is always set to current version not to the version which was used when the object was saved.

What is the preferred approach? I found a lot of articles on the net, but I could not find a good solution for this...

Any help is appreciated Smile | Smile | :)
Thanks,
Abyss
SuggestionRe: Serialization and object versioning Pin
Matt T Heffron25-Mar-13 10:55
memberMatt T Heffron25-Mar-13 10:55 
GeneralRe: Serialization and object versioning Pin
Abyss25-Mar-13 20:04
memberAbyss25-Mar-13 20:04 
AnswerRe: Serialization and object versioning Pin
AContractor2-Apr-13 15:45
professionalAContractor2-Apr-13 15:45 
QuestionUsing JTABLE in MVC Pin
Member 868327723-Mar-13 23:29
memberMember 868327723-Mar-13 23:29 
AnswerRe: Using JTABLE in MVC Pin
Richard MacCutchan24-Mar-13 2:27
mvpRichard MacCutchan24-Mar-13 2:27 
AnswerRe: Using JTABLE in MVC Pin
Vasudevan Deepak Kumar29-Mar-13 6:24
memberVasudevan Deepak Kumar29-Mar-13 6:24 
QuestionMCSD or MCPD?? Pin
Mickt198522-Mar-13 5:09
memberMickt198522-Mar-13 5:09 
AnswerRe: MCSD or MCPD?? Pin
Simon_Whale22-Mar-13 5:19
memberSimon_Whale22-Mar-13 5:19 
GeneralRe: MCSD or MCPD?? Pin
Mickt198522-Mar-13 5:37
memberMickt198522-Mar-13 5:37 
AnswerRe: MCSD or MCPD?? Pin
Abhinav S22-Mar-13 16:44
mvpAbhinav S22-Mar-13 16:44 
GeneralRe: MCSD or MCPD?? Pin
Mickt198523-Mar-13 0:19
memberMickt198523-Mar-13 0:19 
QuestionWindows Explorer Pin
baharan2021-Mar-13 10:59
memberbaharan2021-Mar-13 10:59 
AnswerRe: Windows Explorer Pin
dusty_dex21-Mar-13 11:09
memberdusty_dex21-Mar-13 11:09 
GeneralRe: Windows Explorer Pin
baharan2021-Mar-13 11:15
memberbaharan2021-Mar-13 11:15 
AnswerRe: Windows Explorer Pin
mark merrens21-Mar-13 11:24
membermark merrens21-Mar-13 11:24 
GeneralRe: Windows Explorer Pin
baharan2021-Mar-13 11:34
memberbaharan2021-Mar-13 11:34 
GeneralRe: Windows Explorer Pin
mark merrens21-Mar-13 11:47
membermark merrens21-Mar-13 11:47 
GeneralRe: Windows Explorer Pin
Matt T Heffron21-Mar-13 12:42
memberMatt T Heffron21-Mar-13 12:42 
QuestionSimply create an Entity Framework Project Pin
Clodetta del Mar21-Mar-13 3:59
memberClodetta del Mar21-Mar-13 3:59 
Answer[SOLVED] Simply create an Entity Framework Project Pin
Clodetta del Mar21-Mar-13 4:10
memberClodetta del Mar21-Mar-13 4:10 
GeneralRe: [SOLVED] Simply create an Entity Framework Project Pin
Dave Kreskowiak21-Mar-13 4:30
mvpDave Kreskowiak21-Mar-13 4:30 
GeneralRe: [SOLVED] Simply create an Entity Framework Project Pin
Clodetta del Mar21-Mar-13 4:36
memberClodetta del Mar21-Mar-13 4:36 
QuestionFastest way to import fixed len file into sql table Pin
byka15-Mar-13 3:45
memberbyka15-Mar-13 3:45 
AnswerRe: Fastest way to import fixed len file into sql table Pin
Pete O'Hanlon15-Mar-13 3:53
protectorPete O'Hanlon15-Mar-13 3:53 
GeneralRe: Fastest way to import fixed len file into sql table Pin
byka15-Mar-13 4:37
memberbyka15-Mar-13 4:37 
GeneralRe: Fastest way to import fixed len file into sql table Pin
Pete O'Hanlon15-Mar-13 4:43
protectorPete O'Hanlon15-Mar-13 4:43 
AnswerRe: Fastest way to import fixed len file into sql table Pin
Simon_Whale15-Mar-13 4:49
memberSimon_Whale15-Mar-13 4:49 
AnswerRe: Fastest way to import fixed len file into sql table Pin
Seablade15-Mar-13 8:33
memberSeablade15-Mar-13 8:33 
AnswerRe: Fastest way to import fixed len file into sql table Pin
@AmitGajjar19-Mar-13 21:07
member@AmitGajjar19-Mar-13 21:07 
Questionreal-time geolocation Pin
ibrahimCA12-Mar-13 19:54
memberibrahimCA12-Mar-13 19:54 
AnswerRe: real-time geolocation Pin
Pete O'Hanlon12-Mar-13 20:56
protectorPete O'Hanlon12-Mar-13 20:56 
GeneralRe: real-time geolocation Pin
ibrahimCA12-Mar-13 22:28
memberibrahimCA12-Mar-13 22:28 
GeneralRe: real-time geolocation Pin
Pete O'Hanlon12-Mar-13 22:34
protectorPete O'Hanlon12-Mar-13 22:34 
GeneralRe: real-time geolocation Pin
ibrahimCA12-Mar-13 22:42
memberibrahimCA12-Mar-13 22:42 
GeneralRe: real-time geolocation Pin
Pete O'Hanlon12-Mar-13 23:15
protectorPete O'Hanlon12-Mar-13 23:15 
GeneralRe: real-time geolocation Pin
ibrahimCA12-Mar-13 23:26
memberibrahimCA12-Mar-13 23:26 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 28 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid