Beware!!! The method InitializeShapeFields appears in each shape class that is generated by the DSL tools. However, this method is only invoked ONCE per shape. It is due to this code /// <summary> /// Per-class ShapeFields for this shape. /// </summary>