我的回答有什么问题? [英] What is wrong with my answer?

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

问题描述

我已经使用CodeProject了一段时间,但今天我决定第一次回答一个问题。我试着亲切,彻底,准确。我并不感到不高兴我的答案没有被选中。但我很困惑为什么我被投了票。如果我发现了技术错误,我想理解它,所以我在编码时不再重复。如果这是礼仪错误我想知道,所以我不会继续疏远其他程序员。



我的回答:

什么时候为空而不是空?

解决方案

这是我的问题和我决定投票解决方案。



公平地回顾我给出的例子。我应该在我的例子中使用Session而不是QueryString。



Session返回一个Object,它是使用Convert.ToString转换一个Object,返回空字符串。 br />


您的结论和测试是正确的,所以我会回去更改分数。 : - )

I've used CodeProject for a while but today I decided to respond to a question for the first time. I tried to be cordial, thorough, and accurate. I'm not upset that my answer wasn't chosen. But I'm confused as to why I was down voted. If I made a technical error, I would like to understand it so I don't make it again when coding. If it is an error in etiquette I would like to know so that I don't continue to alienate fellow programmers.

My Answer:
When is null not a null?

解决方案

Hi, it was my question and my decision to vote the solution down.

In fairness, looking back at the example I gave. I should of used Session and not QueryString in my example.

Session returns an Object and it's the conversion of an Object using Convert.ToString which returns the empty string.

Your conclusion and test was correct so I'll go back change the score. :-)


这篇关于我的回答有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆