phoebird 发表于 2013-2-4 20:18:59

c# 结构的定义

using System;using System.Collections.Generic;using System.Text;namespace Queue{    public struct Animal {//定义接口      public int legs;      public string name;      public string color;      public Animal(int legs, string name, string color)//结构内的重构      {            this.legs = legs;            this.name = name;            this.color = color;      }    }} 
页: [1]
查看完整版本: c# 结构的定义