Billpeng Space

技术源自生活
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

隐藏ToString等系统自带方法

Posted on 2012-09-01 04:38  billpeng  阅读(253)  评论(0编辑  收藏  举报
            namespace Anytao.Core.Common
            {
                /// <summary> 
                /// A common interface for any object 
                /// </summary> 
                [EditorBrowsable(EditorBrowsableState.Never)]
                public interface IAnyObject
                {
                    [EditorBrowsable(EditorBrowsableState.Never)]
                    bool Equals(object obj);

                    [EditorBrowsable(EditorBrowsableState.Never)]
                    int GetHashCode();

                    [EditorBrowsable(EditorBrowsableState.Never)]
                    Type GetType();

                    [EditorBrowsable(EditorBrowsableState.Never)]
                    string ToString();
                }
            }