Answers for "how to declare variable in c#"

C#
0

how to use var in c#

/*var*/ var MyVar = 5;
/*static*/ public static int MyStatic;
Posted by: Guest on June-29-2021
0

var c#

/*int*/int myNum = 5;
/*doube*/ double myDoubleNum = 5.99D;
/*char*/ char myLetter = 'D';
/*bool*/ bool myBool = true;
/*string*/ string myText = "Hello";
/*var*/ var myVar = "newewewewewewewewewe"
Posted by: Guest on August-25-2021

Code answers related to "how to declare variable in c#"

C# Answers by Framework

Browse Popular Code Answers by Language