String Array To String
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace NetworkAssetManager.WMI
{
class WMIUtil
{
public static string StringArrayToString(object objects )
{
string finalString = string.Empty;
string[] stringArray = (string[])objects;
foreach (string stringElement in stringArray)
{
finalString += stringElement + ", ";
}
finalString = finalString.TrimEnd(',', ' ');
return finalString;
}
}
}
Related examples in the same category