/// <summary> /// Creates a copy of the given object or the default object when given <c>null</c>. /// </summary> /// <param name="options">The object to clone.</param> /// <returns>A new object.</returns> public static PolygonOperationOptions CloneOrDefault(PolygonOperationOptions options) { Contract.Ensures(Contract.Result<PolygonOperationOptions>() != null); return null == options ? new PolygonOperationOptions() : new PolygonOperationOptions(options); }
/// <summary> /// Creates a copy of the given object or the default object when given <c>null</c>. /// </summary> /// <param name="options">The object to clone.</param> /// <returns>A new object.</returns> public static PolygonOperationOptions CloneOrDefault(PolygonOperationOptions options) { Contract.Ensures(Contract.Result <PolygonOperationOptions>() != null); return(null == options ? new PolygonOperationOptions() : new PolygonOperationOptions(options)); }
/// <summary> /// Copy constructor. /// </summary> /// <param name="options">Object to copy.</param> public PolygonOperationOptions(PolygonOperationOptions options) { if (null == options) { throw new ArgumentNullException("options"); } Contract.EndContractBlock(); InvertResult = options.InvertResult; }
/// <summary> /// Copy constructor. /// </summary> /// <param name="options">Object to copy.</param> public PolygonOperationOptions(PolygonOperationOptions options) { if (null == options) throw new ArgumentNullException("options"); Contract.EndContractBlock(); InvertResult = options.InvertResult; }