Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
code_snippets:csharp_snippets [2014/06/17 18:16]
smark
code_snippets:csharp_snippets [2014/06/17 18:18]
smark
Line 1: Line 1:
 ====== C# Snippets ====== ====== C# Snippets ======
  
-=== CombineAfterIndex(string[] InputArr, string Glue, int StartIdx) ===+=== string ​CombineAfterIndex(string[] InputArr, string Glue, int StartIdx) ===
 Combine elements of a string array with a string between them, after an index from the first array Combine elements of a string array with a string between them, after an index from the first array
 <code c#> <code c#>
Line 12: Line 12:
 } }
 </​code>​ </​code>​
 +
 +=== List<​string>​ Parameterize(string Parameters) ===
 +
 <code c#> <code c#>
 public static List<​string>​ Parameterize(string Parameters) { public static List<​string>​ Parameterize(string Parameters) {
Line 36: Line 39:
 } }
 </​code>​ </​code>​
 +
 +=== int OccurancesInString(String Haystack, String Needle) ===
 +
 <code c#> <code c#>
 /// <​summary>​ /// <​summary>​
Line 47: Line 53:
 } }
 </​code>​ </​code>​
 +
 +=== void PrintArrayList(ArrayList InputArray) ===
  
 <code c#> <code c#>
Line 60: Line 68:
 } }
 </​code>​ </​code>​
 +
 +=== void DumpByteArrayToFile(byte[] inputBytes, String FileName) ===
  
 <code c#> <code c#>
Line 76: Line 86:
 } }
 </​code>​ </​code>​
 +
 +=== void DumpStringToFile(String inputString,​ String FileName) ===
  
 <code c#> <code c#>
Line 92: Line 104:
 } }
 </​code>​ </​code>​
 +
 +=== void PrintCharArrASCII(char[] inputCharArr) ===
  
 <code c#> <code c#>
Line 106: Line 120:
 } }
 </​code>​ </​code>​
 +
 +=== void PrintStringASCII(String inputStr) ===
  
 <code c#> <code c#>
Line 121: Line 137:
 } }
 </​code>​ </​code>​
 +
 +=== void PrintByteArrASCII(byte[] inputByteArr) ===
  
 <code c#> <code c#>
Line 136: Line 154:
 } }
 </​code>​ </​code>​
 +
 +=== ByteArrToASCII(byte[] inputByteArr) ===
  
 <code c#> <code c#>
Line 148: Line 168:
 } }
 </​code>​ </​code>​
 +
 +=== String RemoveNewLineChars(String inputStr) ===
  
 <code c#> <code c#>
Line 162: Line 184:
 } }
 </​code>​ </​code>​
 +
 +=== String StringArrToDelimitedStr(String[] inputStrArr,​ String Delimiter) ===
  
 <code c#> <code c#>
Line 181: Line 205:
 } }
 </​code>​ </​code>​
 +
 +=== String BytesToHumanReadable(long Bytes, int Accuracy) ===
  
 <code c#> <code c#>
Line 199: Line 225:
 } }
 </​code>​ </​code>​
 +
 +=== String MillisecondsToClockFormat(double Milliseconds) ===
  
 <code c#> <code c#>
Line 215: Line 243:
 } }
 </​code>​ </​code>​
 +
 +=== String MillisecondsToHumanReadable(double Milliseconds) ===
  
 <code c#> <code c#>
code_snippets/csharp_snippets.txt · Last modified: 2014/06/19 16:19 by smark
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0