/// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override IFeature DeepClone()
 {
     return(new WeatherForecastWarningArea
     {
         FeatureName = FeatureName == null
             ? new[] { new FeatureName() }
             : Array.ConvertAll(FeatureName, fn => fn.DeepClone() as IFeatureName),
         FeatureObjectIdentifier = FeatureObjectIdentifier == null
             ? new FeatureObjectIdentifier()
             : FeatureObjectIdentifier.DeepClone() as IFeatureObjectIdentifier,
         FixedDateRange = FixedDateRange == null
             ? new DateRange()
             : FixedDateRange.DeepClone() as IDateRange,
         Id = Id,
         PeriodicDateRange = PeriodicDateRange == null
             ? new DateRange[0]
             : Array.ConvertAll(PeriodicDateRange, p => p.DeepClone() as IDateRange),
         SourceIndication = SourceIndication == null
             ? new SourceIndication()
             : SourceIndication.DeepClone() as ISourceIndication,
         TextContent = TextContent == null
             ? new TextContent[0]
             : Array.ConvertAll(TextContent, t => t.DeepClone() as ITextContent),
         Geometry = Geometry,
         CategoryOfFrctAndWarningArea = CategoryOfFrctAndWarningArea,
         Nationality = Nationality,
         Status = Status,
         Links = Links == null
             ? new Link[0]
             : Array.ConvertAll(Links, l => l.DeepClone() as ILink)
     });
 }
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override IFeature DeepClone()
 {
     return(new QualityOfNonBathymetricData
     {
         CategoryOfTemporalVariation = CategoryOfTemporalVariation,
         DataAssessment = DataAssessment,
         SourceIndication = SourceIndication == null
             ? new SourceIndication()
             : SourceIndication.DeepClone() as ISourceIndication,
         FeatureObjectIdentifier = FeatureObjectIdentifier == null
             ? new FeatureObjectIdentifier()
             : FeatureObjectIdentifier.DeepClone() as IFeatureObjectIdentifier,
         HorizontalDistanceUncertainty = HorizontalDistanceUncertainty == null
             ? new string[0]
             : Array.ConvertAll(HorizontalDistanceUncertainty, hdu => hdu),
         HorizontalPositionalUncertainty = HorizontalPositionalUncertainty == null
             ? new HorizontalPositionalUncertainty()
             : HorizontalPositionalUncertainty.DeepClone() as IHorizontalPositionalUncertainty,
         DirectionUncertainty = DirectionUncertainty,
         SurveyDateRange = SurveyDateRange == null
             ? new SurveyDateRange()
             : SurveyDateRange.DeepClone() as ISurveyDateRange,
         Geometry = Geometry,
         Id = Id,
         Links = Links == null
             ? new Link[0]
             : Array.ConvertAll(Links, l => l.DeepClone() as ILink)
     });
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override IFeature DeepClone()
 {
     return(new MilitaryPracticeArea
     {
         FeatureName = FeatureName == null
             ? new[] { new FeatureName() }
             : Array.ConvertAll(FeatureName, fn => fn.DeepClone() as IFeatureName),
         FeatureObjectIdentifier = FeatureObjectIdentifier == null
             ? new FeatureObjectIdentifier()
             : FeatureObjectIdentifier.DeepClone() as IFeatureObjectIdentifier,
         FixedDateRange = FixedDateRange == null
             ? new DateRange()
             : FixedDateRange.DeepClone() as IDateRange,
         Id = Id,
         PeriodicDateRange = PeriodicDateRange == null
             ? new DateRange[0]
             : Array.ConvertAll(PeriodicDateRange, p => p.DeepClone() as IDateRange),
         SourceIndication = SourceIndication == null
             ? new SourceIndication()
             : SourceIndication.DeepClone() as ISourceIndication,
         TextContent = TextContent == null
             ? new TextContent[0]
             : Array.ConvertAll(TextContent, t => t.DeepClone() as ITextContent),
         Geometry = Geometry,
         CategoryOfMilitaryPracticeArea = CategoryOfMilitaryPracticeArea == null
             ? new string[0]
             : Array.ConvertAll(CategoryOfMilitaryPracticeArea, s => s),
         Nationality = Nationality,
         Restriction = Restriction == null
             ? new string[0]
             : Array.ConvertAll(Restriction, s => s),
         Status = Status == null
             ? new string[0]
             : Array.ConvertAll(Status, s => s),
         Links = Links == null
             ? new Link[0]
             : Array.ConvertAll(Links, l => l.DeepClone() as ILink)
     });
 }