vb.net - Can we use Nullable(of T) for property using List? -



vb.net - Can we use Nullable(of T) for property using List<of T>? -

in below sample code, have tried utilize nullable(of t) datetime , want utilize same of dimensions property list(of dimension).

private _duedate nullable(of datetime) public property duedate() nullable(of datetime) homecoming _duedate end set(byval value nullable(of datetime)) _duedate = value end set end property private _dimensions list(of dimension) public property dimensions() list(of dimension) homecoming _dimensions end set(byval value list(of dimension)) _dimensions = value end set end property

if can please help on how can appreciated.

thanks.

there no need utilize nullable(of t) list(of t). utilize list(of t) straight , utilize nothing no value state.

the basic capability nullable(of t) provides value types have no-value state. concept clearer in c# there syntactic difference between no value null , default value default(t). in vb.net though there nothing represents both no value reference types , default value value types.

vb.net generics

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -