Testing Mentor Class Library


NameInfo Members

Sets the properties to pass to the Pseudonym method of the PseudoNameGenerator.

Properties
  Name Description
Filename Sets the filename of the Excel spreadsheet containing the name data.
HasCommaAfterSurname Sets the value to determine if a comma is inserted after the surname if the IsSurnameFirst property is set to true.
HasMiddleInitial Sets the value to determine if the pseudonym contains a middle initial. This property overrides the HasMiddleName property.
HasMiddleName Sets the value to determine if the pseudonym contains a gender specific middle name.
HasPeriodAfterMiddleInitial Sets the value to determine if a period character is inserted after a middle initial. This property is only used if the HasMiddleInitial property is set to true.
IsChineseTwoCharacterGivenName Sets the value to determine if a Chinese given name should contain 2 characters.
IsFemale Sets the value to specify the name gender as female.
IsMale Sets the value to specify the name gender as male.
IsSurnameFirst Sets the value to specify whether the surname is first followed by the given name.
IsSurnameHyphenated Sets a value to determine if the surname is composed of 2 names separated by a hyphen character.
Remarks

The Filename property must be set to an Excel spreadsheet that contains the name data. The Excel format can be either xlsx or xls format. If the filename is not set, or if the path is incorrect the pseudonym will return an empty string.

If the HasMiddleInitial property is set to true the pseudonym will contain a single character representing a middle initial. If this property is true it overrides the HasMiddleName property.

Chinese names can contain one or 2 ideographic characters. If the IsChineseTwoCharacterGivenName property is set to true, then 2 gender specific ideographic characters will be generated for the given name.

East Asian languages such as Chinese, Japanese, and Korean generally do not include middle names.

If the IsSurnameHyphenated property is true the pseudonym will contain 2 surnames separated by a hyphen character; otherwise the surname is one name.

If IsMale and IsFemale properties are set to false, or not set the generator will randomly select a gender for the pseudonym.