long 强制类型转换

正确用法

 object a = pFeature.get_Value(fidIndex);
 long fidValue = Convert.ToInt64(a) ;

错误用法

object a = pFeature.get_Value(fidIndex);
 long fidValue = (long)a;

原文地址:https://www.cnblogs.com/hl3292/p/1846396.html