Click or drag to resize

ConvertToString Method

Integer values (array) converts to text string with a character separated

Namespace:  SOWIData.Helper
Assembly:  SOWIData.Helper (in SOWIData.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static string ToString(
	this int[] pValues,
	string pSeparator = ","
)

Parameters

pValues
Type: SystemInt32
Integer values converts to text string
pSeparator (Optional)
Type: SystemString
Separator character

Return Value

Type: String
Text string of numbers separated by separator character

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Examples
Integer values { 070, 114, 097, 110, 122 } to text string "70, 114, 97, 110, 122"
int[] lValues = { 070, 114, 097, 110, 122 };

string lResult = lValues.ToString(", ");
Or direct
lResult = new int[] { 070, 114, 097, 110, 122 }.ToString(", ");
See Also