c# long?与long的转化代码

long?=z;
long x=z.hasvalue?z.getvalueordefault():long.minvalue;

这样就实现了转化了.因为long?数据类型的变理可能值为null
请使用浏览器的分享功能分享到微信等