private static void Set(this LocationReference locationReference, PostalSuburb postalSuburb) { locationReference.Set( null, postalSuburb.Clone(), postalSuburb.CountrySubdivision.Clone(), postalSuburb.PostalCode.Locality.Clone()); }
public static PostalSuburb Clone(this PostalSuburb postalSuburb) { if (postalSuburb == null) { return(null); } return(new PostalSuburb { Id = postalSuburb.Id, Name = postalSuburb.Name, PostalCode = postalSuburb.PostalCode.Clone(), CountrySubdivision = postalSuburb.CountrySubdivision.Clone(), }); }
public void Add(PostalSuburb postalSuburb) { _namedLocationsById[postalSuburb.Id] = postalSuburb; }