private static ShapeBuilderBase <TShape> PassThroughNonNull(ShapeBuilderBase <TShape> builder) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } return(builder); }
protected ShapeBuilderBase(ShapeBuilderBase <TShape> builder) : this(PassThroughNonNull(builder).Shape) { }