PersonalNameHelper Class
Namespace: PTS.Text
Assembly: PTS.Text.dll
Provides static methods for string
that represent personal names.
Syntax
public static class PersonalNameHelper
Inheritance
System.Object
PersonalNameHelper
Methods
LastName(String)
Gets the words after the first word in this string instance, generally containing last name of a person.
Declaration
public static string LastName(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string to get the last name from. |
Returns
Type | Description |
---|---|
System.String | A new string instance with a person's last name. |
NameWithLastInitial(String, Boolean)
Declaration
public static string NameWithLastInitial(string value, bool addDot = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | |
System.Boolean | addDot |
Returns
Type | Description |
---|---|
System.String |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()