C#?е??????????
???????????? ???????[ 2016/4/14 14:16:03 ] ??????????????????? .NET
??????????????????????C#??????????????????????
???????????DataGridView????????????dgvlist.SelectedRows[0].Cells[0].Value;
???????????ListView????????????listView1.SelectedItems[0].SubItems[0].Text;
??????????????????????????????result=dr["StudentName"].ToString();
???????Dictionary?и???key??????Value????dic["key"]???
??????????????????????????????????????????????????????????????????
????01.C#?е???????????????????????????????????????????????????????????????????????????????????????????
????02.????????????????????????Щ????????????????£?
[???η?] ???????? this[???????? index]
{
get{//????????????}
set{ //????????????}
}
????03.?????????????????
???????????????????????????????????÷???????
????01.???????Test?????漲???????????????????
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ??????
{
public class Test
{
//01.??????????????
private string[] name=new string[2];
//02.??????????????????????????????????name???鴛?????
public string this[int index]
{
get { return name[index]; }
set { name[index] = value; }
}
}
}
????02.??Main?????????????????Test???е????鴛?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ??????
{
class Program
{
static void Main(string[] args)
{
//01.????????????Test??????
Test test=new Test();
//02.????????????Test???е????鴛?
test[0] = "????";
test[1] = "????";
//03.?????Ч??
for (int i = 0; i < 2; i++)
{
Console.WriteLine(test[i]);
}
Console.ReadLine();
}
}
}
????03.Ч?????£?
?????????????????????
???????????
?????????????????????
?????????????????????漲??????????????IL???м????????????????????
??????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11