[Mono-list] Coding & testing question

Krister Hansson ds99krha@thn.htu.se
Thu, 9 May 2002 00:02:40 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0059_01C1F6EC.D5F14C40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Got a newbe question:
If the MSDN specifcation says this for parameters to a method.
--------
Parameters
value=20
An Object that implements the IConvertible interface
--------
Does that mean that I can send anything in to the method that implements =
IConvertible? Int, long, char and so on.

If so how does the runtime decide when to call what method if the method =
is overloaded like:
method(object value){}
method(int myInt){}
if you send in an int?


Ran in to a problem when I was writing a test for Convert in namespace =
System. The methods FromBase64CharArray and FromBase64String boath =
strange error when using mono in cygwin but not when running in windows. =
I get a popup saying

**ERROR**: file unicode.c line 208 (ves_icall_iconv_new_decoder): =
assertion failed: (cd !=3D (iconv_t)-1) aborting...

don't know if leaves the same messege if you run mono on linux...but I =
would guess it does.



//Krister

------=_NextPart_000_0059_01C1F6EC.D5F14C40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff><FONT face=3DArial size=3D2>
<DIV class=3DdtH4>Got a newbe question:</DIV>
<DIV class=3DdtH4>If the MSDN specifcation says this for parameters to a =

method.</DIV>
<DIV class=3DdtH4>--------</DIV>
<DIV class=3DdtH4>Parameters</DIV>
<DIV><I>value</I> </DIV>
<DIV>An Object that implements the IConvertible interface</DIV>
<DIV>--------</DIV>
<DIV>Does that mean that I can send anything in to the method that =
implements=20
IConvertible? Int, long, char and so on.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If so how does the runtime decide when to call what method if the =
method is=20
overloaded like:</DIV>
<DIV>method(object value){}</DIV>
<DIV>method(int myInt){}</DIV>
<DIV>if you send in an int?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ran in to a problem when I was writing a test for Convert in =
namespace=20
System. The methods FromBase64CharArray and FromBase64String boath =
strange=20
error&nbsp;when using mono in cygwin but not when running in windows. I =
get a=20
popup saying</DIV>
<DIV>&nbsp;</DIV>
<DIV>**ERROR**: file unicode.c line 208 (ves_icall_iconv_new_decoder): =
assertion=20
failed: (cd !=3D (iconv_t)-1) aborting...</DIV>
<DIV>&nbsp;</DIV>
<DIV>don't know if leaves the same messege if you run mono on =
linux...but I=20
would guess it does.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>//Krister</DIV></FONT></BODY></HTML>

------=_NextPart_000_0059_01C1F6EC.D5F14C40--