dim temp as ??temp.a = "一个"
temp.b = "二个"
temp.c = "三个"
temp.d = "四个"
temp.xx = "xx"找temp取值就对应的temp.a
temp.b
temp.xxxx......

解决方案 »

  1.   

    public struct Point 
    {
       public int x, y;
    }
    Point myPoint = new Point();
    a=myPoint.x;
    b=myPoint.y;
      

  2.   

    谢谢,对应的VB语言是    Public Structure points
            Public x As Integer
            Public y As Integer
        End Structure    Dim mypoints As points = New points
        mypoints.x = 1
        mypoints.y = 2
      

  3.   

    public class Temp
    {
        private string a = "";
        private string b = "";
        private string c = "";
        private string d = "";
        public string A
        {
            get
            {
                return a;
            }
            set
            {
                a = value;
            }
        }
        ...............
    }Temp.A = "111";//赋值
    string a = Temp.A;//取值
      

  4.   

    枚举
    ------------------------------------
    我的团队:www.51team.com欢迎访问,有志者共谋事,每天都有惊喜,SOHO
      

  5.   

    或Dictionary
    ------------------------------------
    我的团队:www.51team.com欢迎访问,有志者共谋事,每天都有惊喜,SOHO