Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I Generate a Number in C# Pin
Henry Minute27-May-09 0:48
Henry Minute27-May-09 0:48 
Questionspecify url in app.config Pin
Maddie from Dartford26-May-09 20:18
Maddie from Dartford26-May-09 20:18 
AnswerRe: specify url in app.config Pin
Colin Angus Mackay26-May-09 20:57
Colin Angus Mackay26-May-09 20:57 
GeneralRe: specify url in app.config Pin
Maddie from Dartford26-May-09 21:20
Maddie from Dartford26-May-09 21:20 
QuestionComma as Decimal Symbol creating problem Pin
Sifar - 026-May-09 19:36
Sifar - 026-May-09 19:36 
AnswerRe: Comma as Decimal Symbol creating problem Pin
Tuwing.Sabado26-May-09 19:43
Tuwing.Sabado26-May-09 19:43 
QuestionSerialize/Deserialize data class from different assemblies Pin
charian092026-May-09 19:29
charian092026-May-09 19:29 
AnswerRe: Serialize/Deserialize data class from different assemblies Pin
occcy26-May-09 20:58
occcy26-May-09 20:58 
A serialized class stores full names or your class and the properties of this class.
If your server serializes a class of your Apiimpl.dll than this assembly name is stored within the full name of the class. So for deserialization this assembly must be present on your client.

A common way is to use interfaces:

// API.dll:

public interface IDataClass {
  int DataField { get; set; }
}

// APIIMPL.dll:

public class DataClass: IDataClass {
  private int dataField;

  public int DataField { get { return dataField; } set { dataField=value;} }
}



So on your client is no code from your server. This works the best.



Try out the xml serialization to see and understand whats happened to your classes during serialization (search for XmlObjectSerializer in your msdn library).

occcy
GeneralRe: Serialize/Deserialize data class from different assemblies Pin
charian092026-May-09 23:44
charian092026-May-09 23:44 
AnswerRe: Serialize/Deserialize data class from different assemblies Pin
Giorgi Dalakishvili27-May-09 1:21
mentorGiorgi Dalakishvili27-May-09 1:21 
QuestionInformation obut BHO? Pin
Yukivi26-May-09 19:19
Yukivi26-May-09 19:19 
AnswerRe: Information obut BHO? Pin
Henry Minute27-May-09 0:49
Henry Minute27-May-09 0:49 
QuestionEDB file using C# Pin
vijaywithu26-May-09 19:10
vijaywithu26-May-09 19:10 
AnswerRe: EDB file using C# Pin
Colin Angus Mackay26-May-09 21:00
Colin Angus Mackay26-May-09 21:00 
GeneralRe: EDB file using C# Pin
vijaywithu26-May-09 23:02
vijaywithu26-May-09 23:02 
QuestionI want to use FoxPro DBF file Pin
M Riaz Bashir26-May-09 18:46
M Riaz Bashir26-May-09 18:46 
AnswerRe: I want to use FoxPro DBF file Pin
Mycroft Holmes26-May-09 19:47
professionalMycroft Holmes26-May-09 19:47 
GeneralRe: I want to use FoxPro DBF file Pin
M Riaz Bashir26-May-09 20:00
M Riaz Bashir26-May-09 20:00 
AnswerRe: I want to use FoxPro DBF file Pin
leung wilson26-May-09 21:06
leung wilson26-May-09 21:06 
QuestionDownloading all files in directory FTP C# Pin
jumbojs26-May-09 17:05
jumbojs26-May-09 17:05 
AnswerRe: Downloading all files in directory FTP C# Pin
Anubhava Dimri26-May-09 18:43
Anubhava Dimri26-May-09 18:43 
AnswerRe: Downloading all files in directory FTP C# Pin
stancrm26-May-09 20:45
stancrm26-May-09 20:45 
Questiondatagridtextbox column text changed event problem Pin
Shuaib wasif khan26-May-09 11:45
Shuaib wasif khan26-May-09 11:45 
AnswerRe: datagridtextbox column text changed event problem Pin
Henry Minute26-May-09 12:19
Henry Minute26-May-09 12:19 
GeneralRe: datagridtextbox column text changed event problem Pin
Shuaib wasif khan26-May-09 12:30
Shuaib wasif khan26-May-09 12: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.