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

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -