Is it possible to achieve the following in c#…
for the class below…
public class Foo{
public int BarId{get;set;}
public string BarString{get;set;}
}
I want to achieve the following XML:
<Foo>
<BarId BarString="something">123</BarId>
</Foo>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ArsenMkrt is on the right track, but is missing the content of the element, I suggest a revised version:
This way you get the content as an integer.