Article View: borland.public.csharpbuilder.aspdotnet.general
Article #34Re: how Initializing string arrays ?
From: Marc Rohloff TeamB
Date: Sat, 26 Feb 2005 03:12
Date: Sat, 26 Feb 2005 03:12
12 lines
1607 bytes
1607 bytes
On Sat, 26 Feb 2005 05:16:49 +0330, Ramtin wrote:
> 1. How can I have consts or functions without to have a class?
You can't. You can however define a method as 'static' in which case
you don't need an instance of the class.
> 2. How can I initialize string arrays ?
static readonly string[] s = new string[] {"a", "b"};
--
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<m9xhiggu1wdi$.dlg@marcrohloff.40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<421fd517@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 124d48,ed2881ea0dac8f31 X-Google-Attributes: gid124d48,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: how Initializing string arrays ? Newsgroups: borland.public.csharpbuilder.aspdotnet.general User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <421fd517@newsgroups.borland.com> Date: Fri, 25 Feb 2005 22:12:15 -0500 Message-ID: <m9xhiggu1wdi$.dlg@marcrohloff.40tude.net> 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 X-Antivirus: avast! (VPS 0508-3, 02/25/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 4.225.100.129 X-Trace: newsgroups.borland.com 1109387346 4.225.100.129 (25 Feb 2005 19:09:06 -0800) Lines: 12 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail