private void addToStroke(StrokePoint strokePoint) { using (new ProfilerSample("addToStroke: Restart Stroke")) { if (_curStrokeObject.Count > MAX_NUM_STROKE_POINTS) { finalizeStroke(); initStroke(); } } using (new ProfilerSample("addToStroke: Modify Stroke")) { _curStrokeObject.Add(strokePoint); } }