Billpeng Space

技术源自生活
随笔 - 273, 文章 - 0, 评论 - 97, 阅读 - 60万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

隐藏ToString等系统自带方法

Posted on   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();
                }
            }
点击右上角即可分享
微信分享提示