30 lines
597 B
C#
30 lines
597 B
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace DoAn.SugarModels
|
||
{
|
||
class DicKey_Value
|
||
{
|
||
public int key { set; get; }
|
||
public string value { set; get; }
|
||
public DicKey_Value() { }
|
||
|
||
public DicKey_Value(int key, string value)
|
||
{
|
||
this.key = key;
|
||
this.value = value;
|
||
}
|
||
|
||
//必须重写ToString方法,不然显示的是类的信息
|
||
public override string ToString()
|
||
{
|
||
return this.value;
|
||
}
|
||
|
||
|
||
}
|
||
}
|