internal static HasAAProp GetInstance(string property, IHashableFeature featureE) { HasAAProp hasAAProp = new HasAAProp(); hasAAProp.Prop = property; if (featureE != null) { hasAAProp.FeatureCollection = new Feature[] { (Feature)featureE }; } return(hasAAProp); }
public override bool Equals(object obj) { HasAAProp other = obj as HasAAProp; if (other == null) { return(false); } else { if (Prop != other.Prop || FeatureCollection.Length != other.FeatureCollection.Length) { return(false); } if (FeatureCollection.Length > 0) { return(FeatureCollection[0].Equals(other.FeatureCollection[0])); } return(true); } }