你遇到过的源代码中最好的注释是什么?


当前回答

我前几天刚检查过这个…

/// <STERNLY-WORDED-WARNING>
/// Pay attention to this or I will hunt you down.
/// ...
/// </STERNLY-WORDED-WARNING>

(“……”== "专有的东西,我不能发布")。我只是喜欢我的措辞严厉的警告元素。

其他回答

// Replaces with spaces the braces in cases where braces in places cause stasis 
   $str = str_replace(array("\{","\}")," ",$str);

不是注释,而是属性

[ThereBeDragons]

还有一个是我在IHttpHandler的实现中看到的

//What is this?
public bool IsReusable
{
    get{return false;}
}
/*************************** Drag And Drop Section - Start (you should be me to mess with this section)*********************************************/
//Abandon all hope ye who enter beyond this point
//This code sucks, you know it and I know it.  
//Move on and call me an idiot later.