Search This Blog

Wednesday, 5 January 2022

How can I return NULL from a generic method in C#?

 You can set null reference like this way. 

var returnValue = default(T);

No comments:

Post a Comment

Popular Posts