Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は C#.Net を初めて使用します。データ型には、参照型と値型の 2 種類があります。今日、任意の値型のインスタンスを作成してnullそのコンパイラに割り当てると、error.means が返されることを経験しています。
null
int a = null.
私はnull許容変数の意味について話している
int? a = null;
null私の質問は、値型のデータ構造に代入するとエラーが発生する理由です。前もって感謝します。