Пример #1
0
 private static void Set(this LocationReference locationReference, PostalSuburb postalSuburb)
 {
     locationReference.Set(
         null,
         postalSuburb.Clone(),
         postalSuburb.CountrySubdivision.Clone(),
         postalSuburb.PostalCode.Locality.Clone());
 }
Пример #2
0
        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(),
            });
        }
Пример #3
0
 public void Add(PostalSuburb postalSuburb)
 {
     _namedLocationsById[postalSuburb.Id] = postalSuburb;
 }