c# - What is this line of code asking? -
this question has answer here:
public schedule schedule { { return (contractconsignee == null ? null : contractconsignee.schedule); } set { if (contractconsignee == null) { contractconsignee = new contractconsignee(session); contractconsignee.assignments.add(this); } contractconsignee.schedule = value; } }
someone else wrote code. trying solve bug in our system. i'm not familiar with:
== null ? null : contractconsignee.schedule
? :
conditional operator.
if contractconsignee
null
, getter returns null
; otherwise, return contractconsignee.schedule
.
Comments
Post a Comment