Article View: borland.public.csharpbuilder.language.csharp
Article #328Re: DelphiINOperator
From: Craig Stuntz TeamB
Date: Thu, 04 Aug 2005 17:11
Date: Thu, 04 Aug 2005 17:11
18 lines
1595 bytes
1595 bytes
Jeff wrote: > I have the following Delphi syntax: > > if (I in [1, 2, 3]) then > ...... > > What would be the C# syntax? Sets don't exist in C#. Hence, there is no equivalent to in or the square bracket syntax. You can use a list class or a bunch of ors, depending on your need. -- Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz Please read and follow Borland's rules for the user of their news server: http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<42f24c53$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42f245e2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,2da0c8faa466f786 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Craig Stuntz [TeamB]" <craig_stuntz@nospam.please [a.k.a. acm.org]> Subject: Re: DelphiINOperator Newsgroups: borland.public.csharpbuilder.language.csharp References: <42f245e2$1@newsgroups.borland.com> Organization: Vertex Systems Corporation User-Agent: XanaNews/1.17.5.7 X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ:0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR NNTP-Posting-Host: 24.106.104.204 Message-ID: <42f24c53$1@newsgroups.borland.com> Date: 4 Aug 2005 10:11:47 -0700 X-Trace: newsgroups.borland.com 1123175507 24.106.104.204 (4 Aug 2005 10:11:47 -0700) Lines: 18 X-Authenticated-User: cstuntz Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail