using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 可空值类型 { class Program { static void Main(string[] args) { int? a = null; int? b = 5; Console.WriteLine(a);//空 Console.WriteLine(b);//5 Console.WriteLine(a == b);//false Console.ReadKey(); } } }
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/13175.html