[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]code verification
From: |
Gopal V |
Subject: |
Re: [DotGNU]code verification |
Date: |
Sat, 31 Aug 2002 13:14:09 +0530 |
User-agent: |
Mutt/1.2.5i |
If memory serves me right, Haran Shivanan wrote:
> class sdf
> {
> public static void Main()
> {
> String r="sd sdf dsf fsdf sdf";
> String[] s = r.Split('.');
> }
> }
> The following code throws
> System.Security.VerificationException
> when run using ilrun.
>
> Am I doing something wrong here, or is this some sort of bug.
Bug ... It is the params argument passing issue ...
String[] s= r.Split(new char[]{'.'});
Should solve it for now ... the compiler mistakenly assumes r.Split()
as a params method and tries for a single argument case ...
Gopal
--
The difference between insanity and genius is measured by success