{"id":5798,"date":"2024-05-06T14:40:53","date_gmt":"2024-05-06T06:40:53","guid":{"rendered":"https:\/\/blog.qdac.cc\/?p=5798"},"modified":"2024-05-06T14:40:54","modified_gmt":"2024-05-06T06:40:54","slug":"%ef%bc%bb%e6%95%99%e7%a8%8b%ef%bc%bd%ef%bd%84elphi-%e6%b3%9b%e5%9e%8b%e4%b8%ad%e6%95%b0%e6%8d%ae%e5%86%85%e5%ae%b9%e6%af%94%e8%be%83","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=5798","title":{"rendered":"\uff3b\u6559\u7a0b\uff3d\uff24elphi \u6cdb\u578b\u4e2d\u6570\u636e\u5185\u5bb9\u6bd4\u8f83"},"content":{"rendered":"\n<p>\u7b2c\u4e00\uff1a\u4f60\u9700\u8981\u5f15\u5165  System.Generics.Defaults \u5355\u5143\uff0c\u7cfb\u7edf\u9ed8\u8ba4\u5b9e\u73b0\u7684\u6bd4\u8f83\u65b9\u6cd5\uff0c\u90fd\u5728\u8be5\u5355\u5143\u5b9a\u4e49\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\uff1a\u4f60\u8981\u660e\u786e\u4e0b\u4f60\u7684\u9700\u6c42\uff0c\u662f\u53ea\u6bd4\u8f83\u76f8\u7b49\u5c31\u53ef\u4ee5\uff0c\u8fd8\u662f\u8981\u6bd4\u8f83\u5927\u5c0f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IEqualityComparer&lt;T> \u662f\u7528\u6765\u6bd4\u8f83\u4e24\u4e2a\u503c\u662f\u5426\u76f8\u7b49\u7684\u63a5\u53e3<\/li>\n\n\n\n<li>IComparer&lt;T> \u662f\u7528\u6765\u6bd4\u8f83\u4e24\u4e2a\u503c\u5927\u5c0f\u7684\u63a5\u53e3<\/li>\n<\/ul>\n\n\n\n<p>\u7b2c\u4e09\uff1a\u786e\u5b9a\u662f\u5426\u8981\u81ea\u5df1\u5b9e\u73b0\u6bd4\u8f83\u51fd\u6570\u8fd8\u662f\u4f7f\u7528\u9ed8\u8ba4\u7684\u6bd4\u8f83\u51fd\u6570\uff0c\u5982\u679c\u4f7f\u7528\u9ed8\u8ba4\u7684\u6bd4\u8f83\u51fd\u6570\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IEqualityComparer&lt;T> \u7684\u503c\u53d6 TEqualityComparer&lt;T>.Default<\/li>\n\n\n\n<li>IComparer&lt;T> \u7684\u503c\u53d6 TEqualityComparer&lt;T>.Default<\/li>\n<\/ul>\n\n\n\n<p>\u5982\u679c\u8981\u5b9e\u73b0\u81ea\u5df1\u7684\u6bd4\u8f83\u51fd\u6570\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u9884\u7f6e\u7684\u5c01\u88c5\u52a0\u4e00\u4e2a\u533f\u540d\u51fd\u6570\u5b9e\u73b0\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IEqualityComparer&lt;T> \u7684\u503c\u53d6 TEqualityComparer&lt;T>.Construct(&#8230;)<\/li>\n\n\n\n<li>IComparer&lt;T> \u7684\u503c\u53d6 TEqualityComparer&lt;T>.Construct(&#8230;)<\/li>\n<\/ul>\n\n\n\n<p>\u6267\u884c\u5b9e\u73b0\u6bd4\u8f83\u65f6\uff0c\u4f7f\u7528\u5bf9\u5e94\u7684 IComparer&lt;T>.Compare \u6216 IEqualityComparer&lt;T>.Equals \u6765\u6bd4\u8f83\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\uff1a\u4f60\u9700\u8981\u5f15\u5165 System.Gene [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-5798","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":2085,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5798"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5798\/revisions"}],"predecessor-version":[{"id":5799,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5798\/revisions\/5799"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}