Click here to Skip to main content
15,896,549 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do you format your code? [edit] fixed a bit [/edit] Pin
leppie18-May-04 8:55
leppie18-May-04 8:55 
GeneralRe: How do you format your code? [edit] fixed a bit [/edit] Pin
Adam °Wimsatt18-May-04 9:11
Adam °Wimsatt18-May-04 9:11 
GeneralRe: How do you format your code? [edit] fixed a bit [/edit] Pin
leppie18-May-04 9:28
leppie18-May-04 9:28 
AnswerRe: How do you format your code? [edit] fixed a bit [/edit] Pin
Heath Stewart18-May-04 9:27
protectorHeath Stewart18-May-04 9:27 
GeneralRe: How do you format your code? [edit] fixed a bit [/edit] Pin
Adam °Wimsatt18-May-04 9:31
Adam °Wimsatt18-May-04 9:31 
GeneralDatagrid quation Pin
Ashki18-May-04 6:18
Ashki18-May-04 6:18 
GeneralRe: Datagrid quation Pin
Heath Stewart18-May-04 6:31
protectorHeath Stewart18-May-04 6:31 
GeneralDeserialization Pin
cristina_tudor18-May-04 5:54
cristina_tudor18-May-04 5:54 
I have the following problem:
I have 2 classes: MyClass1 and MyClass2. MyClass1 contains a collection ArrayList of MyClass2 objects. In MyClass1 I implement the ISerializable interface. How do I write the constructor for deserialization, especially when I deserialize MyClass2 object?

//Deserialization constructor

public MyClass1 (SerializationInfo info, StreamingContext context) <br />
{<br />
    simpleVar1 = (int)info.GetValue("simpleVar1", typeof(int));<br />
    simpleVar2 = (String)info.GetValue("simpleVar2", typeof(string)); 
//and so on with the simple members of MyClass1
//Deserialize MyClass2 objects from the ArrayList (member of MyClass1)
????????????????????????????????????<br />
}



Thanks for the help!
Best regards,

Cristina
GeneralRe: Deserialization Pin
Heath Stewart18-May-04 6:27
protectorHeath Stewart18-May-04 6:27 
GeneralTrying to understand DataSet and XML Pin
Adam °Wimsatt18-May-04 5:13
Adam °Wimsatt18-May-04 5:13 
GeneralRe: Trying to understand DataSet and XML Pin
Heath Stewart18-May-04 5:23
protectorHeath Stewart18-May-04 5:23 
GeneralRe: Trying to understand DataSet and XML Pin
Adam °Wimsatt18-May-04 5:29
Adam °Wimsatt18-May-04 5:29 
GeneralRe: Trying to understand DataSet and XML Pin
Heath Stewart18-May-04 5:31
protectorHeath Stewart18-May-04 5:31 
GeneralRe: Trying to understand DataSet and XML Pin
Adam °Wimsatt18-May-04 5:37
Adam °Wimsatt18-May-04 5:37 
GeneralAutoPostBack Pin
gmhanna18-May-04 4:41
gmhanna18-May-04 4:41 
GeneralRe: AutoPostBack Pin
Heath Stewart18-May-04 5:18
protectorHeath Stewart18-May-04 5:18 
Questiondo i use crystal reports or sql2000 reporting services? Pin
robmays18-May-04 4:04
robmays18-May-04 4:04 
AnswerRe: do i use crystal reports or sql2000 reporting services? Pin
Heath Stewart18-May-04 4:35
protectorHeath Stewart18-May-04 4:35 
GeneralRe: do i use crystal reports or sql2000 reporting services? Pin
Guillermo Rivero18-May-04 5:55
Guillermo Rivero18-May-04 5:55 
GeneralC# and file access permission failures on Windows 2000 Pin
Parrish18-May-04 1:55
Parrish18-May-04 1:55 
GeneralRe: C# and file access permission failures on Windows 2000 Pin
Dave Kreskowiak18-May-04 2:51
mveDave Kreskowiak18-May-04 2:51 
GeneralRe: C# and file access permission failures on Windows 2000 Pin
Parrish18-May-04 4:12
Parrish18-May-04 4:12 
GeneralRe: C# and file access permission failures on Windows 2000 Pin
Heath Stewart18-May-04 3:59
protectorHeath Stewart18-May-04 3:59 
GeneralRe: C# and file access permission failures on Windows 2000 Pin
Parrish18-May-04 4:17
Parrish18-May-04 4:17 
GeneralPocket PC 2002 and C# Pin
RobMenegon18-May-04 1:44
professionalRobMenegon18-May-04 1:44 

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.