-1
我有它返回一些值,并有一个类型的AppPints()
如下为什么类类型在方法调用数组符号
public AppPints[] GeByLatLong(int scale)
{
return GeByLatLong(scale);
}
,但你可以请让我知道为什么它的方法中[]
符号的方法定义?为什么不只是
public AppPints GeByLatLong(int scale)
{
return GeByLatLong(scale);
}
第一个方法返回一个'AppPints'(例如0 .. *)的数组,而另一个只返回一个(可能是'null')。既然你似乎知道'[]'表示一个数组,那么问题是什么? – Lucero
返回类型声明有一个数组符号*,因为该方法返回一个数组*。 –
因为该方法返回一个AppPints对象数组。 – jonathana