What do you want to save?
Add Code snippet
New code examples
-
C# 2022-02-09 17:15:01
C# extend array
string[] items = new string[3] { "input1", "input2", "input3" }; string[] moreItems = new string[10] { "input4", "input5" }; // array to list List<string> itemsList = items.ToList<string>(); ... Add solution -
-
Other 2022-02-02 21:11:25
get dates between two dates using specific interval using carbon
$period = CarbonPeriod::since('2021-06-01')->days(3)->until('2021-06-30')->toArray(); $period2 = CarbonInterval::days(3)->toPeriod('2021-06-01', '2021-06-30')->toArray(); foreach($period as $val){ echo $val; ... Add solution -
Other 2022-02-02 17:50:17
hwo to convert list of custom class to a byte
using System.IO; using System.Runtime.Serialization.Formatters.Binary; byte[] bytes = null; BinaryFormatter bf = new BinaryFormatter(); using (MemoryStream ms = new MemoryStream()) { //categoryList is where you put the list that you want to convert ... Add solution -
C# 2022-01-30 13:37:18
convert memorystream to byte array c#
byte[] byteArray = memoryStream.ToArray() Add solution -
C# 2022-01-27 23:25:31
c# break file into words
var text = "'Oh, you can't help that,' said the Cat: 'we're all mad here. I'm mad. You're mad.'"; var punctuation = text.Where(Char.IsPunctuation).Distinct().ToArray(); var words = text.Split().Select(x => x.Trim(punctuation)); Add solution
Best helpers
Ranking is empty