c# string array to string
string[] test = new string[2];
test[0] = "Hello ";
test[1] = "World!";
string.Join("", test);
c# string array to string
string[] test = new string[2];
test[0] = "Hello ";
test[1] = "World!";
string.Join("", test);
c# string
// Part 1: create an array.
string[] array = new string[3];
array[0] = "orange";
array[1] = "peach";
array[2] = "apple";
// Part 2: call string.Join.
string result = string.Join(".", array);
Console.WriteLine($"RESULT: {result}");
to string c# fields
public override String ToString()
{
Type objType = this.GetType();
PropertyInfo[] propertyInfoList = objType.GetProperties();
StringBuilder result = new StringBuilder();
foreach (PropertyInfo propertyInfo in propertyInfoList)
result.AppendFormat("{0}:{1},", propertyInfo.Name, propertyInfo.GetValue(this));
return "{" + result.ToString() + "}";
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us