View BinaryFormatterImplementation.cs
This file contains 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.Runtime.Serialization; | |
using System.Runtime.Serialization.Formatters.Binary; | |
namespace ConsoleDev | |
{ | |
public class BinaryFormatterImplementation | |
{ | |
public static void Main(string[] args) |
View XmlDemo.cs
This file contains 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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Xml.Serialization; | |
namespace ConsoleDev | |
{ | |
public class XmlDemo | |
{ |
View ListWithinList.cs
This file contains 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
/// <summary> | |
/// Using https://msdn.microsoft.com/en-us/library/bb534336(v=vs.110).aspx as a guide, | |
/// here's how I flattend out a list within a list. | |
/// </summary> | |
public class ListWithinList | |
{ | |
public static void Main(string[] args) | |
{ | |
var widgets = new List<Widget> | |
{ |