This repository was archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
CollectionExtentions
Stone_Red edited this page May 10, 2021
·
2 revisions
-
Print<T>
-
Description: Prints items of an IEnumerable<T>
-
Parameters:
this IEnumerable<T> collection,char delimiter,bool printToDebugConsole -
Example usage:
string[] yourArray = { "str1", "str2", "str3" }; yourArray.Print(';');
-
Output:
str1; str2; str3
-
-
PrintTable<T>
-
Description: Creates and prints table from 2D array
-
Parameters:
this T[,] array,TableStyle tableStyle -
Example usage:
int[,] your2dArray = { {1,2,3 }, {4,5,6 }, {7,8,9 } }; your2dArray.PrintTable(TableStyle.Default);
-
Output:
------------- | 1 | 2 | 3 | ------------- | 4 | 5 | 6 | ------------- | 7 | 8 | 9 | -------------
-