Suppose you have a class name,properties are defined as First Name,Middle Name and Last Name.
Using String.Format methodpublic String FullName
{
get { return String.Format("{0} {1} {2}", class_obj.First_Name.Trim(),class_obj.Middle_Name.Trim(),class_obj.Last_Name.Trim()); }
}
Using + Sign to concatnatepublic String FullName
{
get { return class_obj.First_Name.Trim() + ' ' + class_obj.Middle_Name.Trim() + ' ' + class_obj.Last_Name.Trim(); }
}
And assign above property to any controls.