C# Класс Faker.Address

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

BuildingNumber() публичный статический Метод

Gets a random building number.
public static BuildingNumber ( ) : string
Результат string

City() публичный статический Метод

Gets a random city.
public static City ( ) : string
Результат string

CityPrefix() публичный статический Метод

Gets a random city prefix.
public static CityPrefix ( ) : string
Результат string

CitySuffix() публичный статический Метод

Gets a random city suffix.
public static CitySuffix ( ) : string
Результат string

Country() публичный статический Метод

Gets a random country.
public static Country ( ) : string
Результат string

CountryCode() публичный статический Метод

Gets a random country code.
public static CountryCode ( ) : string
Результат string

DefaultCountry() публичный статический Метод

Gets the default country.
public static DefaultCountry ( ) : string
Результат string

Latitude() публичный статический Метод

Gets a random latitude coordinate.
public static Latitude ( ) : double
Результат double

Longitude() публичный статический Метод

Gets a random longitude coordinate.
public static Longitude ( ) : double
Результат double

SecondaryAddress() публичный статический Метод

Gets a random secondary address.
public static SecondaryAddress ( ) : string
Результат string

State() публичный статический Метод

Gets a random state.
If the selected Culture doesn't have states, this will output a Random Country instead.
public static State ( ) : string
Результат string

StateAbbreviation() публичный статический Метод

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
Результат string

StreetAddress() публичный статический Метод

Gets a random street address, without a Secondary address.
public static StreetAddress ( ) : string
Результат string

StreetAddress() публичный статический Метод

Gets a random street address.
public static StreetAddress ( bool includeSecondaryAddress ) : string
includeSecondaryAddress bool /// if set to include secondary address. ///
Результат string

StreetName() публичный статический Метод

Gets the name of a random street.
public static StreetName ( ) : string
Результат string

StreetSuffix() публичный статический Метод

Gets a random street suffix.
public static StreetSuffix ( ) : string
Результат string

TimeZone() публичный статический Метод

Gets a random time zone.
public static TimeZone ( ) : string
Результат string

ZipCode() публичный статический Метод

Gets a random zip code.
public static ZipCode ( ) : string
Результат string