private static void Set(this LocationReference locationReference, CountrySubdivision countrySubdivision) { locationReference.Set( null, countrySubdivision.Clone(), countrySubdivision.Clone(), null); }
public static void Set(this LocationReference locationReference, string unstructuredLocation, CountrySubdivision countrySubdivision) { locationReference.Set( unstructuredLocation == string.Empty ? null : unstructuredLocation, countrySubdivision.Clone(), countrySubdivision.Clone(), null); }
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(); }
public static void Set(this LocationReference locationReference, string unstructuredLocation, CountrySubdivision countrySubdivision, PostalCode postalCode) { locationReference.Set( unstructuredLocation, postalCode.Clone(), countrySubdivision.Clone(), postalCode.Locality.Clone()); }