예제 #1
0
        private static ShapeBuilderBase <TShape> PassThroughNonNull(ShapeBuilderBase <TShape> builder)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            return(builder);
        }
예제 #2
0
 protected ShapeBuilderBase(ShapeBuilderBase <TShape> builder)
     : this(PassThroughNonNull(builder).Shape)
 {
 }