Click here to Skip to main content
15,910,358 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to capture the event when the monitor close Pin
Dave Kreskowiak15-Dec-10 2:09
mveDave Kreskowiak15-Dec-10 2:09 
GeneralRe: how to capture the event when the monitor close Pin
scoket15-Dec-10 15:00
scoket15-Dec-10 15:00 
GeneralRe: how to capture the event when the monitor close Pin
Dave Kreskowiak15-Dec-10 16:18
mveDave Kreskowiak15-Dec-10 16:18 
AnswerRe: how to capture the event when the monitor close Pin
Pete O'Hanlon15-Dec-10 2:54
mvePete O'Hanlon15-Dec-10 2:54 
Questionarray [modified] Pin
jim haras14-Dec-10 15:33
jim haras14-Dec-10 15:33 
AnswerRe: array Pin
PIEBALDconsult14-Dec-10 18:09
mvePIEBALDconsult14-Dec-10 18:09 
AnswerRe: array Pin
Abhinav S14-Dec-10 18:47
Abhinav S14-Dec-10 18:47 
AnswerRe: array Pin
Hiren solanki14-Dec-10 19:42
Hiren solanki14-Dec-10 19:42 
GeneralRe: array Pin
jim haras15-Dec-10 5:47
jim haras15-Dec-10 5:47 
GeneralRe: array Pin
jim haras16-Dec-10 16:05
jim haras16-Dec-10 16:05 
QuestionAction keyword question Pin
SciGama14-Dec-10 11:24
SciGama14-Dec-10 11:24 
AnswerRe: Action keyword question Pin
Manfred Rudolf Bihy14-Dec-10 12:35
professionalManfred Rudolf Bihy14-Dec-10 12:35 
GeneralRe: Action keyword question Pin
Henry Minute14-Dec-10 12:36
Henry Minute14-Dec-10 12:36 
GeneralRe: Action keyword question Pin
Manfred Rudolf Bihy14-Dec-10 12:48
professionalManfred Rudolf Bihy14-Dec-10 12:48 
GeneralRe: Action keyword question Pin
Henry Minute14-Dec-10 12:52
Henry Minute14-Dec-10 12:52 
GeneralRe: Action keyword question Pin
Manfred Rudolf Bihy14-Dec-10 13:11
professionalManfred Rudolf Bihy14-Dec-10 13:11 
GeneralRe: Action keyword question Pin
SciGama14-Dec-10 13:01
SciGama14-Dec-10 13:01 
AnswerRe: Action keyword question Pin
Henry Minute14-Dec-10 12:36
Henry Minute14-Dec-10 12:36 
AnswerRe: Action keyword question Pin
SciGama14-Dec-10 12:47
SciGama14-Dec-10 12:47 
GeneralRe: Action keyword question Pin
Manfred Rudolf Bihy14-Dec-10 12:51
professionalManfred Rudolf Bihy14-Dec-10 12:51 
GeneralRe: Action keyword question Pin
SciGama14-Dec-10 13:59
SciGama14-Dec-10 13:59 
AnswerRe: Action keyword question Pin
RaviRanjanKr14-Dec-10 18:25
professionalRaviRanjanKr14-Dec-10 18:25 
QuestionXML Serialization of ArrayList? Pin
Software200714-Dec-10 11:22
Software200714-Dec-10 11:22 
Why can't I do the serialization successfully? I get an execption at the serialize line, yet I can do this using BinaryFormatter and SOAP Formatter. What am I missing?

public class person
    {
        public person() { ;}  //default constructor
        public string firstname;
        public string lastname;
        public int Age;

    }

    public class persons
    {
        public persons() { }
        public ArrayList personlist = new ArrayList();
    }

<pre>[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());


            person p = new person();

            p.firstname = "Tim";
            p.lastname = "Duncan";
            p.Age = 34;

            persons ps = new persons();
            ps.personlist.Add(p);

            FileStream fs = File.Create("C:\\Temp\\test.xml");

            XmlSerializer xs = new XmlSerializer(typeof(ArrayList));
            xs.Serialize(fs,ps);

        }

AnswerRe: XML Serialization of ArrayList? Pin
Henry Minute14-Dec-10 11:40
Henry Minute14-Dec-10 11:40 
GeneralRe: XML Serialization of ArrayList? [modified] Pin
Software200714-Dec-10 13:56
Software200714-Dec-10 13:56 

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.