示例#1
0
文件: World.cs 项目: formist/LinkMe
 private static void Set(this LocationReference locationReference, PostalSuburb postalSuburb)
 {
     locationReference.Set(
         null,
         postalSuburb.Clone(),
         postalSuburb.CountrySubdivision.Clone(),
         postalSuburb.PostalCode.Locality.Clone());
 }
示例#2
0
文件: World.cs 项目: formist/LinkMe
        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;
 }