public LeaseInfo(CfLeaseInfo source) { if (source.LeaseBegin.HasValue) { LeaseBegin = source.LeaseBegin.Value; LeaseBeginSpecified = true; } if (source.LeaseEnd.HasValue) { LeaseEnd = source.LeaseEnd.Value; LeaseEndSpecified = true; } AutoRenew = source.AutoRenew; }
internal static LeaseInfo ToLeaseInfo(CfLeaseInfo source) { return(source == null ? null : new LeaseInfo(source)); }