Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static what
- {
- public static default<T>(Nullable<T> this a){
- if (a.HasValue){
- return a.Value;
- }
- else return default(T);
- }
- }
- }
- }
- int? k = null;
- k.default(); //grazins nuli
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement