VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > 编程开发 > .net教程 >
  • ASP.net教程之C# 中 ==和equals的区别(2)

         //        // 返回结果:        //     如果 true 是 obj 的实例并且等于此实例的值,则为 System.Int32;否则为 false。        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]        public override bool Equals(object obj);        //        // 摘要:        //     返回一个值,该值指示此实例是否等于指定的 System.Int32 值。        //        // 参数:        //   obj:        //     要与此实例进行比较的 System.Int32 值。        //        // 返回结果:        //     如果 true 的值与此实例相同,则为 obj;否则为 false。        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]        public bool Equals(Int32 obj);        //        // 摘要:        //     返回此实例的哈希代码。        //        // 返回结果:        //     32 位有符号整数哈希代码。        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]        public override Int32 GetHashCode();        //        // 摘要:        //     返回值类型 System.TypeCode 的 System.Int32。        //        // 返回结果:        //     枚举常数 System.TypeCode.Int32。        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]        public TypeCode GetTypeCode();        //        // 摘要:        //     使用指定的区域性特定格式信息,将此实例的数值转换为它的等效字符串表示形式。        //        // 参数:        //   provider:        //     一个提供区域性特定的格式设置信息的对象。        //        // 返回结果:        //     此实例的值的字符串表示形式,由 provider 指定。        [SecuritySafeCritical]        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]        public string ToString(IFormatProvider provider);        //        // 摘要:        //     将此实例的数值转换为其等效的字符串表示形式。        //        // 返回结果:        //     此实例的值的字符串表示形式,由减号(如果值为负)和没有前导零的从 0 到 9 的数字序列组成。        [SecuritySafeCritical]        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]        public override string ToString();        //        // 摘要:        //     使用指定的格式和区域性特定格式信息,将此实例的数值转换为它的等效字符串表示形式。        //        // 参数:        //   format:        //     标准或自定义的数值格式字符串。        //        //   provider:        //     一个提供区域性特定的格式设置信息的对象。        //        // 返回结果:        //     此实例的值的字符串表示形式,由 format 和 provider 指定。        //        // 异常:        //   T:System.FormatException:        //     format 无效或不受支持。        [SecuritySafeCritical]        public string ToString(string format, IFormatProvider provider);        //        // 摘要:        //     使用指定的格式,将此实例的数值转换为它的等效字符串表示形式。        //        // 参数:        //   format:        //     标准或自定义的数值格式字符串。        //        // 返回结果:        //     此实例的值的字符串表示形式,由 format 指定。        //        // 异常:        //   T:System.FormatException:        //     format 无效或不受支持。        [SecuritySafeCritical]        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]        public string ToString(string format);    }

相关教程