Muh*_*gha 0 .net c# asp.net
我在C#中有数组,我的逻辑卡住了,只有我可以有浮动索引才能工作.
那天可以是0.5或2.5
天[天,col] = 1;
请让我知道解决方案
Jon*_*eet 9
您可以使用您喜欢的任何类型编写索引器,例如
public double this[double x, int y] { get { ... } set { ... } }
但是,您不能通过非整数索引到数组.
归档时间:
14 年,7 月 前
查看次数:
683 次
最近记录: