c# redeclard variable code example Example 1: how to create a variable in C# int variable; Example 2: c# int int MyInt = 1;