Article View: borland.public.csharpbuilder.language.csharp
Article #569ArrayList get problem.
From: JRobert
Date: Tue, 10 Aug 2004 19:13
Date: Tue, 10 Aug 2004 19:13
34 lines
1517 bytes
1517 bytes
Hello,
i've the following situatuion.
*Initialization of an ArrayList*
public m68kDisassembler()
{
#region Init OPCode Group Array for fast evaluation
OPCodeGroups = new ArrayList(16);
OPCodeGroups.Add((OPCODE_NODE[]) Group_0x0);
OPCodeGroups.Add((OPCODE_NODE[]) Group_0x1);
OPCodeGroups.Add((OPCODE_NODE[]) Group_0x2);
.
.
#endregion
}
*Getting Element _n_ from the ArrayList*
.
.
private static OPCODE_NODE[] curOpcode;
.
.
curOpcode=(OPCODE_NODE[])OPCodeGroups.Item[(opcode&0xf000)>>12];
Here i get an error: Class Expected not Array.
(sorry got to translate it from German)
Any suggestions ?
Regards,
Robert
Technical Details
Message-ID:
<411910a7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,e82952e970601dc8,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 10 Aug 2004 20:13:35 +0100 From: JRobert <tsync@cronospec.de> User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.language.csharp Subject: ArrayList get problem. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.135.100.193 Message-ID: <411910a7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092161703 80.135.100.193 (10 Aug 2004 11:15:03 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail