Nettiers.AdventureWorks.Entities.VEmployeeBase.ToString C# (CSharp) Method

ToString() public method

Returns a String that represents the current object.
public ToString ( ) : string
return string
		public override string ToString()
		{
			return string.Format(System.Globalization.CultureInfo.InvariantCulture,
				"{18}{17}- EmployeeId: {0}{17}- Title: {1}{17}- FirstName: {2}{17}- MiddleName: {3}{17}- LastName: {4}{17}- Suffix: {5}{17}- JobTitle: {6}{17}- Phone: {7}{17}- EmailAddress: {8}{17}- EmailPromotion: {9}{17}- AddressLine1: {10}{17}- AddressLine2: {11}{17}- City: {12}{17}- StateProvinceName: {13}{17}- PostalCode: {14}{17}- CountryRegionName: {15}{17}- AdditionalContactInfo: {16}{17}", 
				this.EmployeeId,
				(this.Title == null) ? string.Empty : this.Title.ToString(),
			     
				this.FirstName,
				(this.MiddleName == null) ? string.Empty : this.MiddleName.ToString(),
			     
				this.LastName,
				(this.Suffix == null) ? string.Empty : this.Suffix.ToString(),
			     
				this.JobTitle,
				(this.Phone == null) ? string.Empty : this.Phone.ToString(),
			     
				(this.EmailAddress == null) ? string.Empty : this.EmailAddress.ToString(),
			     
				this.EmailPromotion,
				this.AddressLine1,
				(this.AddressLine2 == null) ? string.Empty : this.AddressLine2.ToString(),
			     
				this.City,
				this.StateProvinceName,
				this.PostalCode,
				this.CountryRegionName,
				(this.AdditionalContactInfo == null) ? string.Empty : this.AdditionalContactInfo.ToString(),
			     
				System.Environment.NewLine, 
				this.GetType());
		}