static void Main(string[] args) { Console.WriteLine("Hello .NET Core"); MyLibrary.MyClass foo = new MyLibrary.MyClass(); Console.WriteLine($"2 + 3 = {foo.Sum(2,3)}"); Console.ReadKey(); }
private void btnClick_Click(object sender, RoutedEventArgs e) { Person person1 = new Person { FirstName = "Bill", LastName = "Smith" }; MyLibrary.Person person2 = new MyLibrary.Person { FirstName = "Bill", LastName = "Smith" }; MyLibrary.MyClass cls = new MyLibrary.MyClass(); MemoryStream compressedStream = cls.Compress(person2); tbOriginal.Text = "Original Stream Length: " + cls.originalLength; MemoryStream decompressedStream = Decompress(compressedStream);//length is still c2 tbDecompressed.Text = "Decompressed Stream Length: " + decompressedStream.Length; }