🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #517

about equal

#517
From: lobster
Date: Fri, 12 Nov 2004 02:08
10 lines
1068 bytes
hi,all, what's the difference between
equals, referenceequals,==?

like this:
string a = "123";
string b = "123";
bool flag = ReferenceEquals(a,b);
why the flag is true?

thanks
Technical Details
Message-ID: <41941ac9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,4ce6d5ccdf90d708,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "lobster" <superxr@21cn.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: about equal
Date: Fri, 12 Nov 2004 10:08:25 +0800
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 61.129.97.83
Message-ID: <41941ac9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100225225 61.129.97.83 (11 Nov 2004 18:07:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail