using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication24{ public struct kong<T> where T : struct { T value; } class Program { static void Main(string[] args) { System.Nullable<int> i1 =new Nullable<int>(); i1 = null; kong<int> bb = new kong<int>(); bb = null;//錯誤 1 無法將 Null 轉換成“ConsoleApplication24.kong<int>”,因為它是一種不可為 null 值的類型 } }}
- 2 回答
- 0 關注
- 759 瀏覽
添加回答
舉報
0/150
提交
取消