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? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -