I transfer the code from c ++ cli to c #. There is a fragment when
void method() { for (int i = 0; i < 65536; i++) ] variable[i] = method1(i); }
As you can see, in method1, values of type int
fall, BUT, method1 takes a value of type wchar_t variable2
and in the implementation of the method, a variable is created with the assignment of the given type int variable3 = variable2
This is how it turns out, my C # swears at this: Argument 1: I can not convert from "int" to "char".
The question is, does automatic conversion take place in c ++, or there is no conversion and the int
value is simply transferred, what happens?