Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: windows service Pin
arkiboys11-Jan-11 3:32
arkiboys11-Jan-11 3:32 
GeneralRe: windows service Pin
arkiboys11-Jan-11 4:59
arkiboys11-Jan-11 4:59 
GeneralRe: windows service Pin
Mirko198011-Jan-11 5:32
Mirko198011-Jan-11 5:32 
GeneralRe: windows service Pin
arkiboys11-Jan-11 6:09
arkiboys11-Jan-11 6:09 
GeneralRe: windows service Pin
Mirko198011-Jan-11 6:58
Mirko198011-Jan-11 6:58 
GeneralRe: windows service Pin
arkiboys14-Jan-11 3:23
arkiboys14-Jan-11 3:23 
QuestionWindows Service Screenshot & Remote Control -> WIN 7 and 2008R2 Pin
Neo5432111-Jan-11 0:29
Neo5432111-Jan-11 0:29 
QuestionXML Deserialization Pin
NarVish10-Jan-11 23:09
NarVish10-Jan-11 23:09 
Hi,
below is my XML file:
<Course>
  <CourseInfo>
    <Id>3000</Id>
    <Name type="BTECH">Bachelor of Technology</Name>
  <CourseInfo>
</Course>

I would like to deserialize this XML. I created classes for Course and CourseInfo.
When I tried to deserialize the xml using below code, I got Id as "3000" and Name as "Bachelor of Technology". But didn't get the type attribute. Please guide me to get the value of type attribute. Thanks in advance
public class AwardInfo
{
   public string m_Id;
   [XmlElement("Id")]
   public string Id
   {
      get { return m_Id; }
      set { m_Id = value; }
   }
   
   public string m_Name;
   [XmlElement("Name")]
   public string Name
   {
      get { return m_Name; }
      set { m_Name = value; }
   }
}

AnswerRe: XML Deserialization PinPopular
Estys10-Jan-11 23:31
Estys10-Jan-11 23:31 
GeneralRe: XML Deserialization Pin
NarVish11-Jan-11 22:40
NarVish11-Jan-11 22:40 
GeneralRe: XML Deserialization Pin
Estys11-Jan-11 22:47
Estys11-Jan-11 22:47 
Questionglobal vars names Pin
sadas232341s10-Jan-11 23:06
sadas232341s10-Jan-11 23:06 
AnswerRe: global vars names Pin
Pete O'Hanlon10-Jan-11 23:09
mvePete O'Hanlon10-Jan-11 23:09 
AnswerRe: global vars names Pin
OriginalGriff10-Jan-11 23:29
mveOriginalGriff10-Jan-11 23:29 
AnswerRe: global vars names Pin
Luc Pattyn11-Jan-11 2:05
sitebuilderLuc Pattyn11-Jan-11 2:05 
AnswerRe: global vars names Pin
PIEBALDconsult11-Jan-11 2:16
mvePIEBALDconsult11-Jan-11 2:16 
AnswerRe: global vars names Pin
RaviRanjanKr12-Jan-11 4:25
professionalRaviRanjanKr12-Jan-11 4:25 
QuestionListBox control - Freezing one or more rows at top? Pin
AussieLew10-Jan-11 15:44
AussieLew10-Jan-11 15:44 
AnswerRe: ListBox control - Freezing one or more rows at top? Pin
Luc Pattyn10-Jan-11 17:56
sitebuilderLuc Pattyn10-Jan-11 17:56 
QuestionYearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 8:40
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 8:40 
AnswerRe: Yearly Calendar Pin
Dalek Dave10-Jan-11 8:56
professionalDalek Dave10-Jan-11 8:56 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 9:13
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 9:13 
GeneralRe: Yearly Calendar Pin
Dalek Dave10-Jan-11 9:42
professionalDalek Dave10-Jan-11 9:42 
GeneralRe: Yearly Calendar Pin
Ali Al Omairi(Abu AlHassan)10-Jan-11 9:48
professionalAli Al Omairi(Abu AlHassan)10-Jan-11 9:48 
AnswerRe: Yearly Calendar Pin
Henry Minute10-Jan-11 11:17
Henry Minute10-Jan-11 11:17 

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.