C# si null for decimal

Fara sa compilati, vedeti ce output da codul acesta:

decimal? v = 100;
            Console.WriteLine(v);
            decimal? x = null;
            x += v.Value;
            Console.WriteLine(x);

Ok, e clar raspunsul avind in vedere intrebarea …

One thought on “C# si null for decimal

Leave a Reply

Your email address will not be published. Required fields are marked *