- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
...
IEnumerable<Status> Statuses;
public Status GetCurrentStatus1() {
var e = Statuses.GetEnumerator();
e.MoveNext();
return e.Current;
}
public Status GetCurrentStatus2() {
foreach (var e in Statuses)
return e;
return null;
}
public Status GetCurrentStatus3() {
return Statuses.FirstOrDefault();
}