c# - Convert List< Guid > to List< Guid? > -


what best practice convert list< guid > list< guid? >

the following not compile:

public list<guid?> foo() {     list<guid> guids = getguidslist();     return guids;  } 

something this

return guids.select(e => new guid?(e)).tolist(); 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -