This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Text; | |
using System.Xml.Serialization; | |
public static void SerializeAndPrint() | |
{ | |
XmlSerializer serializer = new XmlSerializer(typeof(Person)); | |
using (StringWriter writer = new StringWriter()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
[XmlElement(ElementName = "First")] | |
public string FirstName { get; set; } | |
[XmlElement(ElementName = "Last")] | |
public string LastName { get; set; } | |
public int Age { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PhoneNumber | |
{ | |
[XmlIgnore] | |
public string AreaCode { get; set; } | |
[XmlIgnore] | |
public string Number { get; set; } | |
[XmlText] | |
public string FormattedNumber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
[XmlElement(ElementName = "First")] | |
public string FirstName { get; set; } | |
[XmlElement(ElementName = "Last")] | |
public string LastName { get; set; } | |
public int Age { get; set; } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
[XmlElement(ElementName = "First")] | |
public string FirstName { get; set; } | |
[XmlElement(ElementName = "Last")] | |
public string LastName { get; set; } | |
public int Age { get; set; } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
[XmlElement(ElementName = "First")] | |
public string FirstName { get; set; } | |
[XmlElement(ElementName = "Last")] | |
public string LastName { get; set; } | |
public int Age { get; set; } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public int Age { get; set; } | |
public string Email { get; set; } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"scripts": { | |
"bootstrap": "lerna bootstrap", | |
"build": "lerna run build", | |
"publish": "lerna publish" | |
}, | |
"devDependencies": { | |
"lerna": "^8.1.9" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"workspaces": [ | |
"packages/*" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"workspaces": [ | |
"packages/main", | |
"packages/bravo" | |
] |