本文介绍了此"int"是什么?方法 ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在预先存在的项目(VS2008)中的某个地方(我必须维护的那个地方;-[),我看到一些编码如下:-


Hi,

Somewhere in the pre-existing project(VS2008), (the one that i have to maintain ;-[ ), i see some coding as follows:-


public int? GetInt(object p_objValue)
{
}



在这里,这是什么"int"?是什么意思?

没有错误提到带有"int"的问号.

帮助!!



Here, What does this "int?" means ?

The question mark with "int" is not mentioned by mistake.

HELP !!

推荐答案

int i1=1; //ok
int i2=null; //not ok
int? i3=1; //ok
int? i4=null; //ok




检查此链接
http://social.msdn.microsoft.com/Forums/zh/csharpgeneral/thread/4107d47b-b1c4-495d-a67a-6ad3f2e7adbc [ ^ ]




check this link
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/4107d47b-b1c4-495d-a67a-6ad3f2e7adbc[^]




这篇关于此"int"是什么?方法 ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 11:39