C# Class Faker.Address

Exibir arquivo Open project: AdmiringWorm/Faker.NET.Portable Class Usage Examples

Public Methods

Method Description
BuildingNumber ( ) : string

Gets a random building number.

City ( ) : string

Gets a random city.

CityPrefix ( ) : string

Gets a random city prefix.

CitySuffix ( ) : string

Gets a random city suffix.

Country ( ) : string

Gets a random country.

CountryCode ( ) : string

Gets a random country code.

DefaultCountry ( ) : string

Gets the default country.

Latitude ( ) : double

Gets a random latitude coordinate.

Longitude ( ) : double

Gets a random longitude coordinate.

SecondaryAddress ( ) : string

Gets a random secondary address.

State ( ) : string

Gets a random state.

If the selected Culture doesn't have states, this will output a Random Country instead.

StateAbbreviation ( ) : string

Gets a random state abbreviation.

If the selected Culture doesn't have states, this will output a Random Country Abbreviation instead.

StreetAddress ( ) : string

Gets a random street address, without a Secondary address.

StreetAddress ( bool includeSecondaryAddress ) : string

Gets a random street address.

StreetName ( ) : string

Gets the name of a random street.

StreetSuffix ( ) : string

Gets a random street suffix.

TimeZone ( ) : string

Gets a random time zone.

ZipCode ( ) : string

Gets a random zip code.

Method Details

BuildingNumber() public static method

Gets a random building number.
public static BuildingNumber ( ) : string
return string

City() public static method

Gets a random city.
public static City ( ) : string
return string

CityPrefix() public static method

Gets a random city prefix.
public static CityPrefix ( ) : string
return string

CitySuffix() public static method

Gets a random city suffix.
public static CitySuffix ( ) : string
return string

Country() public static method

Gets a random country.
public static Country ( ) : string
return string

CountryCode() public static method

Gets a random country code.
public static CountryCode ( ) : string
return string

DefaultCountry() public static method

Gets the default country.
public static DefaultCountry ( ) : string
return string

Latitude() public static method

Gets a random latitude coordinate.
public static Latitude ( ) : double
return double

Longitude() public static method

Gets a random longitude coordinate.
public static Longitude ( ) : double
return double

SecondaryAddress() public static method

Gets a random secondary address.
public static SecondaryAddress ( ) : string
return string

State() public static method

Gets a random state.
If the selected Culture doesn't have states, this will output a Random Country instead.
public static State ( ) : string
return string

StateAbbreviation() public static method

Gets a random state abbreviation.
If the selected Culture doesn't have states, this will output a Random Country Abbreviation instead.
public static StateAbbreviation ( ) : string
return string

StreetAddress() public static method

Gets a random street address, without a Secondary address.
public static StreetAddress ( ) : string
return string

StreetAddress() public static method

Gets a random street address.
public static StreetAddress ( bool includeSecondaryAddress ) : string
includeSecondaryAddress bool /// if set to include secondary address. ///
return string

StreetName() public static method

Gets the name of a random street.
public static StreetName ( ) : string
return string

StreetSuffix() public static method

Gets a random street suffix.
public static StreetSuffix ( ) : string
return string

TimeZone() public static method

Gets a random time zone.
public static TimeZone ( ) : string
return string

ZipCode() public static method

Gets a random zip code.
public static ZipCode ( ) : string
return string