Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
QuestionFile.Move/create just won't work! Pin
Goaty6510925-Mar-13 11:28
Goaty6510925-Mar-13 11:28 
AnswerRe: File.Move/create just won't work! Pin
DaveyM6925-Mar-13 11:58
professionalDaveyM6925-Mar-13 11:58 
AnswerRe: File.Move/create just won't work! Pin
Abhinav S25-Mar-13 16:47
Abhinav S25-Mar-13 16:47 
AnswerRe: File.Move/create just won't work! Pin
Richard MacCutchan26-Mar-13 0:02
mveRichard MacCutchan26-Mar-13 0:02 
GeneralRe: File.Move/create just won't work! Pin
Goaty6510926-Mar-13 3:16
Goaty6510926-Mar-13 3:16 
GeneralRe: File.Move/create just won't work! Pin
Richard MacCutchan26-Mar-13 6:37
mveRichard MacCutchan26-Mar-13 6:37 
GeneralRe: File.Move/create just won't work! Pin
Goaty6510926-Mar-13 8:51
Goaty6510926-Mar-13 8:51 
GeneralRe: File.Move/create just won't work! Pin
Richard MacCutchan26-Mar-13 9:14
mveRichard MacCutchan26-Mar-13 9:14 
GeneralRe: File.Move/create just won't work! Pin
Goaty6510926-Mar-13 18:43
Goaty6510926-Mar-13 18:43 
GeneralRe: File.Move/create just won't work! Pin
Goaty6510926-Mar-13 19:42
Goaty6510926-Mar-13 19:42 
GeneralRe: File.Move/create just won't work! Pin
Richard MacCutchan26-Mar-13 22:42
mveRichard MacCutchan26-Mar-13 22:42 
QuestionI want to add progress bar for ftp download for the following code Pin
Friendsaa25-Mar-13 10:25
Friendsaa25-Mar-13 10:25 
AnswerRe: I want to add progress bar for ftp download for the following code Pin
Abhinav S25-Mar-13 16:50
Abhinav S25-Mar-13 16:50 
AnswerRe: I want to add progress bar for ftp download for the following code Pin
GuyThiebaut25-Mar-13 22:39
professionalGuyThiebaut25-Mar-13 22:39 
QuestionWhat is Jabber client ? Pin
Tridip Bhattacharjee25-Mar-13 9:49
professionalTridip Bhattacharjee25-Mar-13 9:49 
AnswerRe: What is Jabber client ? Pin
Peter_in_278025-Mar-13 10:54
professionalPeter_in_278025-Mar-13 10:54 
AnswerRe: What is Jabber client ? Pin
Dave Kreskowiak25-Mar-13 11:01
mveDave Kreskowiak25-Mar-13 11:01 
GeneralRe: What is Jabber client ? Pin
Tridip Bhattacharjee25-Mar-13 21:27
professionalTridip Bhattacharjee25-Mar-13 21:27 
GeneralRe: What is Jabber client ? Pin
Dave Kreskowiak26-Mar-13 1:44
mveDave Kreskowiak26-Mar-13 1:44 
AnswerRe: What is Jabber client ? Pin
Pete O'Hanlon25-Mar-13 22:40
mvePete O'Hanlon25-Mar-13 22:40 
AnswerRe: What is Jabber client ? Pin
Richard MacCutchan25-Mar-13 23:50
mveRichard MacCutchan25-Mar-13 23:50 
QuestionSerialization and object versioning Pin
Abyss25-Mar-13 9:39
Abyss25-Mar-13 9:39 
AnswerRe: Serialization and object versioning Pin
Eddy Vluggen25-Mar-13 23:31
professionalEddy Vluggen25-Mar-13 23:31 
Abyss wrote:
What is the preferred approach?

If there was a preferred approach that applies in all circumstances, all other approaches would be dropped.

I'd go for the simplest solution; meaning the OptionalField if I'd expect that the class is not going to change much. Anything that could have more/complexer versions, I'd write a custom ISerializable.

Abyss wrote:
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.

It'd be overkill, and not everybody will be wanting to use those version-numbers. Keep in mind that the version-number you see is the one of the assembly that the class is contained in. Alternatively, one might use different version numbers for files, created with a single version of a class. So, the one-size-fits all wouldn't fit here.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

QuestionHow to do code optimization in c# apps Pin
Tridip Bhattacharjee25-Mar-13 9:30
professionalTridip Bhattacharjee25-Mar-13 9:30 
GeneralRe: How to do code optimization in c# apps Pin
harold aptroot25-Mar-13 10:41
harold aptroot25-Mar-13 10:41 

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.