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 -

trac - Modifying workflow to add a status and split on ticket type -

Delphi interface implements -