in Backend/src/System.Device/Location/CivicAddressResolver.cs [42:93]
public CivicAddress(String addressLine1, String addressLine2, String building, String city, String countryRegion, String floorLevel, String postalCode, String stateProvince)
: this()
{
bool hasField = false;
if (addressLine1 != null && addressLine1 != String.Empty)
{
hasField = true;
AddressLine1 = addressLine1;
}
if (addressLine2 != null && addressLine2 != String.Empty)
{
hasField = true;
AddressLine2 = addressLine2;
}
if (building != null && building != String.Empty)
{
hasField = true;
Building = building;
}
if (city != null && city != String.Empty)
{
hasField = true;
City = city;
}
if (countryRegion != null && countryRegion != String.Empty)
{
hasField = true;
CountryRegion = countryRegion;
}
if (floorLevel != null && floorLevel != String.Empty)
{
hasField = true;
FloorLevel = floorLevel;
}
if (postalCode != null && postalCode != String.Empty)
{
hasField = true;
PostalCode = postalCode;
}
if (stateProvince != null && stateProvince != String.Empty)
{
hasField = true;
StateProvince = stateProvince;
}
if (!hasField)
{
throw new ArgumentException(SR.Argument_RequiresAtLeastOneNonEmptyStringParameter);
}
}