Click here to Skip to main content
16,005,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: Common codebase for C++ and C#? (update) Pin
CPallini7-Jan-09 2:10
mveCPallini7-Jan-09 2:10 
Questionhow to export a datagridview with C# in win appl Pin
rana_cisco6-Jan-09 23:47
rana_cisco6-Jan-09 23:47 
AnswerRe: how to export a datagridview with C# in win appl Pin
Eddy Vluggen7-Jan-09 0:18
professionalEddy Vluggen7-Jan-09 0:18 
AnswerRe: how to export a datagridview with C# in win appl Pin
Dragonfly_Lee7-Jan-09 0:47
Dragonfly_Lee7-Jan-09 0:47 
AnswerRe: how to export a datagridview with C# in win appl Pin
Ashfield7-Jan-09 1:30
Ashfield7-Jan-09 1:30 
Questiondeserialization issue Pin
George_George6-Jan-09 23:41
George_George6-Jan-09 23:41 
AnswerRe: deserialization issue Pin
Colin Angus Mackay7-Jan-09 0:43
Colin Angus Mackay7-Jan-09 0:43 
GeneralRe: deserialization issue Pin
George_George10-Jan-09 2:19
George_George10-Jan-09 2:19 
Thanks Colin,

I have tried but still InvalidOperationException, the exception message is "There is an error in XML document (1, 14)."

Here is my code, any ideas?

using System;
using System.ComponentModel;
using System.IO;
using System.Xml.Serialization;


public class Bar
{
    [XmlAttribute(DataType = "int", AttributeName = "counter")]
    [System.ComponentModel.DefaultValueAttribute(0)]
    public int counter;
}
static class Program
{
    static void Main()
    {
        Bar a = Read(@"<Bar counter=10/>");

        return;
    }

    static Bar Read(string xml)
    {
        Bar bar = (Bar)new XmlSerializer(typeof(Bar)).Deserialize(new StringReader(xml));
        return bar;
    }
}


regards,
George
Questioncode to add cut,copy,paste property for a picturebox on form in vc#.net Pin
shabanab6-Jan-09 23:30
shabanab6-Jan-09 23:30 
AnswerRe: code to add cut,copy,paste property for a picturebox on form in vc#.net Pin
DaveyM697-Jan-09 1:33
professionalDaveyM697-Jan-09 1:33 
Questionbreak through 2 loops Pin
Deresen6-Jan-09 23:08
Deresen6-Jan-09 23:08 
GeneralRe: break through 2 loops Pin
Luc Pattyn6-Jan-09 23:15
sitebuilderLuc Pattyn6-Jan-09 23:15 
GeneralRe: break through 2 loops Pin
Deresen6-Jan-09 23:25
Deresen6-Jan-09 23:25 
GeneralRe: break through 2 loops Pin
N a v a n e e t h6-Jan-09 23:28
N a v a n e e t h6-Jan-09 23:28 
GeneralRe: break through 2 loops Pin
Luc Pattyn6-Jan-09 23:31
sitebuilderLuc Pattyn6-Jan-09 23:31 
GeneralRe: break through 2 loops Pin
Rob Philpott6-Jan-09 23:43
Rob Philpott6-Jan-09 23:43 
GeneralRe: break through 2 loops Pin
Luc Pattyn6-Jan-09 23:50
sitebuilderLuc Pattyn6-Jan-09 23:50 
GeneralRe: break through 2 loops Pin
CPallini7-Jan-09 0:14
mveCPallini7-Jan-09 0:14 
GeneralRe: break through 2 loops Pin
Rob Philpott7-Jan-09 0:23
Rob Philpott7-Jan-09 0:23 
GeneralRe: break through 2 loops Pin
CPallini7-Jan-09 0:11
mveCPallini7-Jan-09 0:11 
GeneralRe: break through 2 loops Pin
Luc Pattyn7-Jan-09 0:19
sitebuilderLuc Pattyn7-Jan-09 0:19 
GeneralRe: break through 2 loops Pin
DaveyM697-Jan-09 1:11
professionalDaveyM697-Jan-09 1:11 
GeneralRe: break through 2 loops Pin
Deresen7-Jan-09 9:22
Deresen7-Jan-09 9:22 
AnswerRe: break through 2 loops Pin
User 66586-Jan-09 23:17
User 66586-Jan-09 23:17 
AnswerRe: break through 2 loops Pin
HosamAly7-Jan-09 9:16
HosamAly7-Jan-09 9:16 

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.