+ 2
Default Values for Uninitialized Variables: How Will You Know Beforehand?
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace SoloLearn { class Program { static Point point1; static Pen pen1; static void Main(string[] args) { Console.WriteLine(pen1 == null); // True Console.WriteLine(point1 == null); // False (?) } } }
1 Respuesta