经常在c#的函数上方看到[MonoTODO]定义,请教高手MonoTODO是属于哪个命名空间,有啥作用?比如:
[MonoTODO]
        public static bool IsDefined(ParameterInfo element, Type attributeType, bool inherit)
        {
            CheckParameters(element, attributeType);            if (element.IsDefined(attributeType, inherit))
                return true;            // FIXME: MS walks up the inheritance chain in some crazy way
            return IsDefined(element.Member, attributeType, inherit);
        }

解决方案 »

  1.   

    这个属性是Mono项目中的System命名空间下,并不是Microsoft .Net的一部分,Mono是一个开源的运行与非Windows平台的.net实现。参考http://www.mono-project.com/
    MonoTODO的作用主要是用来标示为完成或需要修改的代码,不过我并没有用过Mono,大概是带有这种属性的方法在Mono的开发环境中或者生成文档时会有特别的提示?
      

  2.   

    可以确认这个是Mono特有的属性。Moma工具就是根据这个来判定一个应用程序使用的全部API是不是已经在Mono上面全部实现了。当然,lz的代码一看就知道是Mono项目的代码了,注释很有意思。