Hello,
Is it possible to somehow get a value from an array using a nullable int?
int? index = 1;
bool[] array = new bool[2] { true, false};
if( i != null) {
bool b = array[i];
}
Thanks in advance!
Hello,
Is it possible to somehow get a value from an array using a nullable int?
int? index = 1;
bool[] array = new bool[2] { true, false};
if( i != null) {
bool b = array[i];
}
Thanks in advance!
array[i.Value]
Thank you, that works!