public AbsCoFeature(ICoLayer icoLayer_1, CoFeatureType coFeatureType_1) { this.icoLayer_0 = icoLayer_1; this.coFeatureType_0 = coFeatureType_1; if (this.icoLayer_0 != null) { for (int i = 0; i < this.icoLayer_0.Fields.Count; i++) { this.list_0.Add(null); } } }
public static ICoFeature CreateFeature(ICoLayer icoLayer_0, CoFeatureType coFeatureType_0) { switch (coFeatureType_0) { case CoFeatureType.Point: return(new CoPointFeature(icoLayer_0)); case CoFeatureType.Polygon: return(new CoPolygonFeature(icoLayer_0)); case CoFeatureType.Annotation: return(new CoAnnotationFeature(icoLayer_0)); case CoFeatureType.Polyline: return(new CoPolylineFeature(icoLayer_0)); } return(null); }