Click here to Skip to main content
15,897,718 members
Home / Discussions / C#
   

C#

 
QuestionWebcam/Scanner Pin
XeoN-Kc25-Sep-05 4:44
XeoN-Kc25-Sep-05 4:44 
AnswerRe: Webcam/Scanner Pin
Andrew Kirillov25-Sep-05 19:30
Andrew Kirillov25-Sep-05 19:30 
GeneralRe: Webcam/Scanner Pin
Anonymous26-Sep-05 19:39
Anonymous26-Sep-05 19:39 
GeneralRe: Webcam/Scanner Pin
Anonymous27-Sep-05 6:38
Anonymous27-Sep-05 6:38 
QuestionUsing IShellFolder.BindToObject Pin
daouner25-Sep-05 4:17
daouner25-Sep-05 4:17 
QuestionSerialize an Object with a Hashtable of Objects Pin
Gilad Kapelushnik25-Sep-05 3:35
Gilad Kapelushnik25-Sep-05 3:35 
AnswerRe: Serialize an Object with a Hashtable of Objects Pin
S. Senthil Kumar25-Sep-05 4:26
S. Senthil Kumar25-Sep-05 4:26 
QuestionSerialize an Object with a Hashtable of Objects Pin
Gilad Kapelushnik25-Sep-05 3:35
Gilad Kapelushnik25-Sep-05 3:35 
Hello

I need to Serialize an object containing a hashtable where each value in the hashtable is an object.

[Serializable]
class A{
public ushort[] UshortArray; // lets assume this points to an array
}

[Serializable]
class B{
public Hashtable HashOfA;
}

void Main(){

A A1 = new A();
A A2 = new A();
B B1 = new B();

B1.Init() // Set hashtable
B1.Add(1,A1); // add item
B1.Add(2,A2); // add item

byte[] Binary;
/////////////////////////////////
// Here I want to serialize B1 to binary format
//////////////////////////////////

B B2 = new B();
///////////////////////////////////////
// And ofcourse back to object B2
///////////////////////////////////////
}

I know how to do this where insted of <class a=""> I have <struct a="">. Is there a solution for objects ?
I'm using a MemoryStream and BinaryFormatter.

Gilad.
QuestionHow can I know if a Class has an instance object in Computer's memory ? Pin
Anonymous25-Sep-05 1:46
Anonymous25-Sep-05 1:46 
AnswerRe: How can I know if a Class has an instance object in Computer's memory ? Pin
S. Senthil Kumar25-Sep-05 4:28
S. Senthil Kumar25-Sep-05 4:28 
GeneralRe: How can I know if a Class has an instance object in Computer's memory ? Pin
mav.northwind25-Sep-05 20:09
mav.northwind25-Sep-05 20:09 
QuestionWord doc in Web Browser Control Pin
mirano25-Sep-05 0:28
mirano25-Sep-05 0:28 
AnswerRe: Word doc in Web Browser Control Pin
Anonymous25-Sep-05 23:52
Anonymous25-Sep-05 23:52 
Questioncache question Pin
snouto24-Sep-05 16:58
snouto24-Sep-05 16:58 
AnswerRe: cache question Pin
Dave Kreskowiak24-Sep-05 18:34
mveDave Kreskowiak24-Sep-05 18:34 
AnswerRe: cache question Pin
Daniel Grunwald24-Sep-05 21:52
Daniel Grunwald24-Sep-05 21:52 
Questionchecking LAN connectivity Pin
g00fyman24-Sep-05 16:19
g00fyman24-Sep-05 16:19 
AnswerRe: checking LAN connectivity Pin
mav.northwind24-Sep-05 20:38
mav.northwind24-Sep-05 20:38 
GeneralRe: checking LAN connectivity Pin
g00fyman24-Sep-05 20:48
g00fyman24-Sep-05 20:48 
GeneralRe: checking LAN connectivity Pin
g00fyman24-Sep-05 21:33
g00fyman24-Sep-05 21:33 
GeneralRe: checking LAN connectivity Pin
mav.northwind25-Sep-05 19:58
mav.northwind25-Sep-05 19:58 
GeneralRe: checking LAN connectivity Pin
g00fyman25-Sep-05 21:17
g00fyman25-Sep-05 21:17 
QuestionCheck Box Pin
Anonymous24-Sep-05 16:17
Anonymous24-Sep-05 16:17 
AnswerRe: Check Box Pin
miah alom25-Sep-05 7:11
miah alom25-Sep-05 7:11 
QuestionProblem in Code : SEE COMMENT** Pin
Anonymous24-Sep-05 16:13
Anonymous24-Sep-05 16:13 

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.