Im trying to use the following code:
private Nullable<List<IpAddressRange>> ipAddressRangeToBind;
But I am getting the following warning:
The type List must be a non-nullable value type in
order to use it as a parameter ‘T’ in the generic type or method
‘System.Nullable’.
List<T>is already a reference type (for any kind ofT) – you can only declareNullable<T>whereTis a non-nullable value type (it’s declared asNullable<T> where T : struct).But that’s okay, because if you just declare:
then you can still have
because reference types are always nullable.