Ejemplo n.º 1
0
        public RefValue()
        {
            var x = 1;
            var y = "2";
            var z = DemoData.GetDemoObj();

            TuWas(x, y, z);
            #region ref
            //TuWas(ref x, ref y, z);
            #endregion

            Console.WriteLine("x: " + x);
            Console.WriteLine("y: " + y);
            Console.WriteLine("z: " + z.MyString);


            #region Compare strings
            // https://www.codeproject.com/Articles/406046/Why-strings-are-immutable-and-what-are-the-implica
            #endregion
        }