using system;
public class Test
{
public static void Main()
{
// your code goes here
Guid? loc = null;
Props p =
new Props
(loc
);
Props p2 = null;
Console.WriteLine(p2?.loc.GetValueOrDefault());
Console.WriteLine(loc.GetValueOrDefault());
}
}
class Props
{
public Guid? loc { get; set; }
public Props(Guid? loc)
{
this.loc = loc;
}
}