Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ByVal
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { private static int a; private static int b; public static void Main(string[] args) { bool isThursday = DateTime.Today.DayOfWeek == System.DayOfWeek.Thursday; if(isThursday) { int x = 5; int y = 5; SetValues(x, y); } Console.WriteLine(Sum()); } public static void SetValues(int a, int b){ a = a; b = b; } public static int Sum(){ return a + b; } } }
run
|
edit
|
history
|
help
0
Hi
C# interview question. Closure pitfalls.
Enumeration
Truncate String by Byte
Find Prime number
Comp4.1
Fórum ➡ Convert from one format into another using LINQ ( as much as possible ) ♦
5
Unix timestamp to DateTime
Helloworld