asp net core assign type as variable code example Example: how to declare variables in c# public int yourNumber = 5;