x = y ?? z
it equals
x = (y != null ? y : z)
it means:
1. if y is not null, x = y
2. if y is null, x = z
a = b ?? null
1. if b is not null, a = b
2. if b is null, a = null
沒有留言:
張貼留言