Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- static class Ext
- {
- public static bool Greater0(this int a)
- {
- return a > 0;
- }
- }
- class Program
- {
- class Hugo {
- public Hugo() { }
- public int value = 0;
- }
- static void Main(string[] args)
- {
- Hugo nullHugo = null;
- var what1 = nullHugo?.value;
- var what2 = what1?.GetHashCode();
- var what3 = nullHugo?.value > 0;
- var what4 = what1?.Greater0();
- Console.WriteLine(what1 > 0 || what1 <= 0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement