Làm cách nào để tạo một lớp nullable (?) Trong C#? Giống như:Tạo lớp nullable
public class Hello1 {
public int Property1 { get; set; }
}
public class Hello2 {
Public Hello1? Property2 { get; set; } //Hello1 should work when it has "?"
}
Tôi muốn làm cho lớp Hello1 có dạng "Hello1?" Nếu cần thiết.
Đây là bản sao của http://stackoverflow.com/questions/3132667/nullable-class – evasilchenko