private void EnsureShapeIsNotEmpty(FeatureInfo featureInfo) { using (Feature feature = featureInfo.GetFeature()) { System.Diagnostics.Debug.Assert(!feature.GetShape().IsEmpty, "The feature's shape should not be empty."); } }