惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - life++

multer /busboy 上传文件无法完成回调问题 linux系统上搭建egret构建环境(针对5.3.x 版以上) android studio 2.0 Gradle HttpProxy 设置 javascript的 parseInt 曾经的“陷井”在IE10上不见了,但还是得注意! 无法将类型为“xxxx”的对象强制转换为类型“Microsoft.SharePoint.WebPartPages.WebPart”。 ajax 12301 原因小结 被人忽悠完成的56.com我秀聊天室群发软件 WebDav基于Exchange2003开发邮件收发系统 fiddler 调试 WebDav 引起400错误处理 HTML-JS中的单双引混合处理原则 [笔记]443端口没开放让svn https连接不上 ora10ginstant 精简客户端遇到 system.data.oracleclient 需要 oracle 客户端软件8.1.7 或更高版本 手动调用__doPostBack('xx','') 在IE6, 下留意 javascript:void(0);问题。 让relative容器里的元素的z-index高于body下的遮照层 [原]SWFUpload 在IE9下不显示问题及IE9中模态窗下flash文件选择问题的处理 JQuery-easyui accordion 滚动条在IE6下“丢失”的处理 asp.net Ajax 页中使用jquery-easyui的显示问题处理 自问自答 胡乱写个 List string 类型排序。
equal 与 ==
life++ · 2011-04-01 · via 博客园 - life++
            var s1 = new { Name = "abc" };
            var s2 = new { Name = "abc" };

            Debug.WriteLine(s1.Equals(s2));
            Debug.WriteLine(s1 == s2);

            var s3 = s2;
            Debug.WriteLine(s2.Equals(s3));
            Debug.WriteLine(s2 == s3);
 .entrypoint
  // 代码大小       92 (0x5c)
  .maxstack  2
  .locals init ([0] class '<>f__AnonymousType0`1'<string> s1,
           [1] class '<>f__AnonymousType0`1'<string> s2,
           [2] class '<>f__AnonymousType0`1'<string> s3)
  IL_0000:  nop
  IL_0001:  ldstr      "abc"
  IL_0006:  newobj     instance void class '<>f__AnonymousType0`1'<string>::.ctor(!0)
  IL_000b:  stloc.0
  IL_000c:  ldstr      "abc"
  IL_0011:  newobj     instance void class '<>f__AnonymousType0`1'<string>::.ctor(!0)
  IL_0016:  stloc.1
  IL_0017:  ldloc.0
  IL_0018:  ldloc.1
  IL_0019:  callvirt   instance bool [mscorlib]System.Object::Equals(object)
  IL_001e:  box        [mscorlib]System.Boolean
  IL_0023:  call       void [System]System.Diagnostics.Debug::WriteLine(object)
  IL_0028:  nop
  IL_0029:  ldloc.0
  IL_002a:  ldloc.1
  IL_002b:  ceq
  IL_002d:  box        [mscorlib]System.Boolean
  IL_0032:  call       void [System]System.Diagnostics.Debug::WriteLine(object)
  IL_0037:  nop
  IL_0038:  ldloc.1
  IL_0039:  stloc.2
  IL_003a:  ldloc.1
  IL_003b:  ldloc.2
  IL_003c:  callvirt   instance bool [mscorlib]System.Object::Equals(object)
  IL_0041:  box        [mscorlib]System.Boolean
  IL_0046:  call       void [System]System.Diagnostics.Debug::WriteLine(object)
  IL_004b:  nop
  IL_004c:  ldloc.1
  IL_004d:  ldloc.2
  IL_004e:  ceq
  IL_0050:  box        [mscorlib]System.Boolean
  IL_0055:  call       void [System]System.Diagnostics.Debug::WriteLine(object)
  IL_005a:  nop
  IL_005b:  ret

结果是……

posted @ 2011-04-01 21:53  life++  阅读(251)  评论()    收藏  举报