What do you want to save?
Add Code snippet
New code examples in category C#
-
Awgiedawgie 2022-03-24 11:35:43
c# linq aggregate string builder
string[] words = { "one", "two", "three" }; var res = words.Aggregate( "", // start with empty string to handle empty list case. (current, next) => current + ", " + next); Console.WriteLine(res); Add solution -
Awgiedawgie 2022-03-24 10:20:05
logiska operatorer c#
static void Main(string[] args) { // // TODO: Add code to start application here // Console.WriteLine("Mata in ett heltal"); string inmatat = Console.ReadLine(); int x = int.Parse(inmatat); if( x<10) { Console.WriteLine("Det... Add solution -
Krish 2022-03-24 03:05:21
c# less than and equal to
if (7 >= 6) { //Anything here will be called if 7 is greater than OR equal to 6. //Meaning this will be called. } if (6 >= 6) { //Anything here will be called if 6 is greater than OR equal to 6, //Meaning this will be called. } if (6 >... Add solution
Best helpers
Tushar Diwan
+5
Pinakin
+5
I-love-php
+5
Sinow
+5
Saforrest
+5
Mastersulm
+5
Adam Clowes
+5
Any Mouse
+5