📜  使用函数 c# 代码示例为变量赋值

📅  最后修改于: 2022-03-11 14:48:48.934000             🧑  作者: Mango

代码示例1
int number = AssignValue(5); //Assign the value "5" to the int "number"


int AssignValue(int numberToAssign) 
{
  return numberToAssign; //you can put any code here as soon as it returns an int
}