Last names

Last name data is contained within WorldLastName instances and is mostly used in the Pick last name from list and related, country-specific masking activities.

Each WorldLastName instance contains data concerning last names and contains the following information:

  • LastName - Last name
  • Country - Country code

Below are a few examples:

LastName Country
Baldwin US
Johnston US
Poole US
Baumgardt DE
Mendez CO

A collection of all WorldLastName instances can be accessed with PickLists.WorldLastNames, an IEnumerable collection. In addition to the standard methods the Enumerable type offers, you can also use the following filtering methods:

  • OnlyLastNames() - Returns only last names, without country codes, in string format

  • OnlyCountry(string country) - Returns last names from the country represented by the given country code