コード例 #1
0
ファイル: World.cs プロジェクト: formist/LinkMe
 private static void Set(this LocationReference locationReference, CountrySubdivision countrySubdivision)
 {
     locationReference.Set(
         null,
         countrySubdivision.Clone(),
         countrySubdivision.Clone(),
         null);
 }
コード例 #2
0
ファイル: World.cs プロジェクト: formist/LinkMe
 public static void Set(this LocationReference locationReference, string unstructuredLocation, CountrySubdivision countrySubdivision)
 {
     locationReference.Set(
         unstructuredLocation == string.Empty ? null : unstructuredLocation,
         countrySubdivision.Clone(),
         countrySubdivision.Clone(),
         null);
 }
コード例 #3
0
ファイル: LocationReference.cs プロジェクト: formist/LinkMe
 public void CopyTo(LocationReference location)
 {
     location.UnstructuredLocation = UnstructuredLocation;
     location.NamedLocation        = NamedLocation == null ? null : NamedLocation.Clone();
     location.CountrySubdivision   = CountrySubdivision == null ? null : CountrySubdivision.Clone();
     location.Locality             = Locality == null ? null : Locality.Clone();
 }
コード例 #4
0
ファイル: World.cs プロジェクト: formist/LinkMe
 public static void Set(this LocationReference locationReference, string unstructuredLocation, CountrySubdivision countrySubdivision, PostalCode postalCode)
 {
     locationReference.Set(
         unstructuredLocation,
         postalCode.Clone(),
         countrySubdivision.Clone(),
         postalCode.Locality.Clone());
 }