public Schedule Schedule
{
get
{
return (ContractConsignee == null ? null : ContractConsignee.Schedule);
}
set
{
if (ContractConsignee == null)
{
ContractConsignee = new ContractConsignee(Session);
ContractConsignee.Assignments.Add(this);
}
ContractConsignee.Schedule = value;
}
}
Someone else wrote this code. I am trying to solve a bug in our system. I'm not familiar with:
== null ? null : ContractConsignee.Schedule
? :
is the conditional operator.If
ContractConsignee
isnull
, the getter returnsnull
; otherwise, it will returnContractConsignee.Schedule
.