Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vectro3? 类型返回值的问题 #15

Closed
blueberryWT opened this issue Dec 27, 2016 · 1 comment
Closed

Vectro3? 类型返回值的问题 #15

blueberryWT opened this issue Dec 27, 2016 · 1 comment

Comments

@blueberryWT
Copy link

C#:
public Vector3? Test()
{
return null;
}

ILRT:
var v3 = XXXX.Instance.Test();
if (null != v3)
{
logger.LogMessageInfo("v3 = ", v3.Value);
}

这样在判断非空那一行就会报错

@liiir1985
Copy link
Collaborator

Nullable一旦转换成object就直接成真的null了,然后就丢失信息了
故无法修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants