dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]code verification


From: Haran Shivanan
Subject: Re: [DotGNU]code verification
Date: Sat, 31 Aug 2002 13:26:43 +0530 (IST)

> 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 ...

Something else is wrong.

Compiling the above code give:
invalid value for argument 1
incompatible types in assignment: no conversion from 'invalid type' to
'System.String[]'

I can do the following

char[] c ={'.'};
String s[]=r.Split(c)

but this just seems to copy r to s[0].
s.Length is giving a value of 1.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]