Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
expresiones switch
//Microsoft (R) Visual C# Compiler version 3.4.0-beta4-19562-05 (ff930dec) //Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //simplifica switch, esta en la version de C# 8 var data = 2; var resultado = data switch //busca comparar data con las opciones, y luego le asigna ese valor a resultado { 1 => 0, 2 => "joel", 3 => 3, 4 => "lala" }; Console.WriteLine(resultado); } } }
run
|
edit
|
history
|
help
0
<title>Hello world</title>
NEVERMIND
Convert Excel Range To Absolute Excel Range
AX 2012 Test #1
Sort String
Command design pattern
Program A
FromBibleC#(OOP)
Testing 12
Find X numbers of 6 in row (dices)