Код: Выделить всё
Nullable GetCorrectField(ref SomeStruct s) {
// Depending on some property of s either return null or a ref to a field of s
}
ps: нет, я не могу использовать классы.
Подробнее здесь: https://stackoverflow.com/questions/718 ... -to-struct