Hi, I just moved over from vb.net to c#.net...
I'm under the impressin Implicit conversion (in this example anyway) is the ability to cast one datatype to another, and since c# does not primarily support this. I'm a little confused as to how this is done, in my programs I am constantly getting this:
"Cannot convert method group 'ToString' to non-delegate type 'string'. Did you intend to invoke the method?"
failing that, I get an error that implicit conversion is not possible.
EDIT: this is a code snippet of a working conversion i bodged together.
CODE
if (arraySelecter < key.Length - 1)
{
int letterNo= text[letterCount -1];
int keyNo = key[arraySelecter -1];
int spareInt = letterCount * letterNo;
string spare = spareInt.ToString();
text[letterCount] = char.Parse(spare);
arraySelecter += 1;
}
text[] and key[] are both Char arrays, and as you can see my code is long and not efficient.
To my point:
Does anyone know of any resources that will aid me in my understanding of this problem,
or of a simple tip that i could do with?
many thanks in advance,
~Smithy
This post has been edited by Smithy963: 25 May, 2008 - 12:15 PM