Example #1
0
    static void Main(string[] args)
    {
        var obj = new MyObject()
        {
            Prop1 = "Hello",
        };

        Console.WriteLine(obj.Prop1);
        try
        {
            obj.DoWork();
        }
        catch (Exception)
        {
        }
        Console.WriteLine(obj.Prop1);

        /*
         * Hello
         * World!
         */
    }