Questions on Feature.CopyAttributes

Sep 8, 2014 at 5:50 PM
Edited Sep 8, 2014 at 5:52 PM
Hi everyone!
A couple of questions:
  1. Is it correct that CopyAttributes cannot be used and aFeature.DataRow cannot be populated unless the target feature belongs to a FeatureSet? I tried using CopyAttributes before adding the feature to the FeatureSet but then an exception was raised (feature.Fid will throw the exception).
  2. Do you get the same results for the following two cases a and b?
    a)
var feature = new Feature(sourceFeature);
    newFeatureSet.Features.Add(feature)
    feature.CopyAttributes(feature)
b)
var feature = sourceFeature.Clone();
   newFeatureSet.Features.Add(feature)
//Peder