Answers for "c# variables var"

C#
1

varibles c#

// A varible can either be public or private, public lets you use the varible in a different script
// Private make you only use the varible in the same script

public int Example = 5;  // These are for full numbers such as 2 or 7
private int Example = 5;

public bool Example = 5; // These are for Boolean values
private bool Example = 5;

public float Example = 5.3f; // These are for floating numbers such as 20.0f
private float Example = 5.3f;
Posted by: Guest on February-23-2021
0

how to use var in c#

/*const*/ public const int I = 1;
/*reandoly*/ reandoly string MyString(this is an example);
Posted by: Guest on June-29-2021

C# Answers by Framework

Browse Popular Code Answers by Language