internal void FromLocatorInfo(LocatorInfo l) { if (l == null) { return; } this.Name = l.Name; this.DisplayName = l.DisplayName; this.IsDefault = l.IsDefault; this.Url = l.Url; this.LocatorType = l.LocatorType; this.Description = l.Description; this.SpatialReference = l.SpatialReference; if (l.LocatorAddressFields != null) { this.LocatorAddressFields = new List <LocatorAddressField>(l.LocatorAddressFields.Count); foreach (LocatorAddressField addressField in l.LocatorAddressFields) { this.LocatorAddressFields.Add(new LocatorAddressField(addressField)); } } else { this.LocatorAddressFields = null; } }
internal LocatorInfo Clone() { LocatorInfo l = new LocatorInfo { Name = this.Name, Url = this.Url, DisplayName = this.DisplayName, IsDefault = this.IsDefault, LocatorType = this.LocatorType, Description = this.Description, SpatialReference = this.SpatialReference, }; if (this.LocatorAddressFields != null) { l.LocatorAddressFields = new List<LocatorAddressField>(this.LocatorAddressFields.Count); foreach (LocatorAddressField addressField in this.LocatorAddressFields) { l.LocatorAddressFields.Add(addressField.Clone()); } } return l; }
internal LocatorInfo Clone() { LocatorInfo l = new LocatorInfo { Name = this.Name, Url = this.Url, DisplayName = this.DisplayName, IsDefault = this.IsDefault, LocatorType = this.LocatorType, Description = this.Description, SpatialReference = this.SpatialReference, }; if (this.LocatorAddressFields != null) { l.LocatorAddressFields = new List <LocatorAddressField>(this.LocatorAddressFields.Count); foreach (LocatorAddressField addressField in this.LocatorAddressFields) { l.LocatorAddressFields.Add(addressField.Clone()); } } return(l); }
internal void FromLocatorInfo(LocatorInfo l) { if (l == null) return; this.Name = l.Name; this.DisplayName = l.DisplayName; this.IsDefault = l.IsDefault; this.Url = l.Url; this.LocatorType = l.LocatorType; this.Description = l.Description; this.SpatialReference = l.SpatialReference; if (l.LocatorAddressFields != null) { this.LocatorAddressFields = new List<LocatorAddressField>(l.LocatorAddressFields.Count); foreach (LocatorAddressField addressField in l.LocatorAddressFields) { this.LocatorAddressFields.Add(new LocatorAddressField(addressField)); } } else { this.LocatorAddressFields = null; } }
public LocatorInfo(LocatorInfo locatorInfo) { FromLocatorInfo(locatorInfo); }