Click here to Skip to main content
15,889,403 members
Home / Discussions / C#
   

C#

 
GeneralRe: Returning a collection class Pin
Andrew Bromfield16-Jul-03 10:36
Andrew Bromfield16-Jul-03 10:36 
GeneralDrawing on Desktop Pin
Juergen15-Jul-03 3:48
Juergen15-Jul-03 3:48 
GeneralRe: Drawing on Desktop Pin
jtmtv1816-Jul-03 16:50
jtmtv1816-Jul-03 16:50 
GeneralRe: Drawing on Desktop Pin
Juergen16-Jul-03 22:08
Juergen16-Jul-03 22:08 
GeneralRe: Drawing on Desktop Pin
jtmtv1816-Jul-03 22:34
jtmtv1816-Jul-03 22:34 
GeneralRe: Drawing on Desktop Pin
Juergen16-Jul-03 22:47
Juergen16-Jul-03 22:47 
GeneralRe: Drawing on Desktop Pin
jtmtv1816-Jul-03 23:04
jtmtv1816-Jul-03 23:04 
GeneralSerialization in C# Pin
Stephane David14-Jul-03 22:38
Stephane David14-Jul-03 22:38 
I'm trying to serialize a complex data structure, and I have some questions.
- How do I serialize an array? In the GetObjectData that I have to implement, I use the AddInfo function. But it takes two parameters : a "key" in a value.
If I want to save a float[8], how can I do this?
Do something like :
for(int i = 0; i <8; i++)
{
string key = "Array" + i.ToString();
SerializeInfo.AddValue(key, array[i]);
}
- How to I serialize complex object?
Suppose I have a class CDrawing, that cointains an array of CShape. A CShape can be derived into a CCircle or a CRectangle
Somewhere in my code I do
shapeArray[0] = new CCircle;
shapeArray[1] = new CRectangle;
Serializing is not a pb, because I will make the GetObjectData function virtual, so it will use the correct one to write CCircle parameters for the first shape, and CRectangle paramters for the second shape.
But how can I deserialize? How do I know if I must do a new CCircle, or a new CRectanle?
- How can I serialize to a text file? I've found only a binary and a SOAP formatter.
GeneralRe: Serialization in C# Pin
Nathan Blomquist15-Jul-03 3:57
Nathan Blomquist15-Jul-03 3:57 
GeneralRe: Serialization in C# Pin
Stephane David15-Jul-03 4:33
Stephane David15-Jul-03 4:33 
GeneralRe: Serialization in C# Pin
Nathan Blomquist15-Jul-03 9:55
Nathan Blomquist15-Jul-03 9:55 
GeneralRe: Serialization in C# Pin
Anonymous16-Jul-03 6:03
Anonymous16-Jul-03 6:03 
GeneralMSMQ Question Pin
ripsi14-Jul-03 19:55
ripsi14-Jul-03 19:55 
Generalhelp me, how to autoscroll in richtextbox Pin
KETUINHA14-Jul-03 17:31
KETUINHA14-Jul-03 17:31 
GeneralRe: help me, how to autoscroll in richtextbox Pin
J. Dunlap14-Jul-03 19:06
J. Dunlap14-Jul-03 19:06 
GeneralRe: help me, how to autoscroll in richtextbox Pin
KETUINHA14-Jul-03 20:49
KETUINHA14-Jul-03 20:49 
GeneralRe: help me, how to autoscroll in richtextbox Pin
J. Dunlap14-Jul-03 21:05
J. Dunlap14-Jul-03 21:05 
GeneralRe: help me, how to autoscroll in richtextbox Pin
KETUINHA14-Jul-03 21:16
KETUINHA14-Jul-03 21:16 
GeneralRe: help me, how to autoscroll in richtextbox Pin
dynamic14-Jul-03 21:29
dynamic14-Jul-03 21:29 
GeneralRe: help me, how to autoscroll in richtextbox Pin
J. Dunlap14-Jul-03 21:45
J. Dunlap14-Jul-03 21:45 
GeneralRe: help me, how to autoscroll in richtextbox Pin
dynamic14-Jul-03 22:00
dynamic14-Jul-03 22:00 
GeneralRe: help me, how to autoscroll in richtextbox Pin
KETUINHA14-Jul-03 22:54
KETUINHA14-Jul-03 22:54 
GeneralProperty values from loaded process Pin
Shaun Becker14-Jul-03 15:39
Shaun Becker14-Jul-03 15:39 
GeneralRe: Property values from loaded process Pin
Rocky Moore14-Jul-03 23:29
Rocky Moore14-Jul-03 23:29 
GeneralRe: Property values from loaded process Pin
Shaun Becker15-Jul-03 0:34
Shaun Becker15-Jul-03 0:34 

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.