【C#学习笔记】结构体使用
using System; namespace ConsoleApplication { struct _st { public string name; public int age; } class Program { static void Print(_st a) { Console.Write(a.name+" "+a.age); } static void Main(string[] args) { _st a; a.name = "xiaoming"; a.age = 10; Print(a); Console.Read(); } } }