المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Simple syntax error?



C# Programming
08-25-2009, 11:31 PM
Hello everybody,

first I want to tell you that I don't know C# - I'm programming in VB.NET which works for most things I need. Now I have the need to extend a working C# class with a method that converts an RGB Array to its rows, which I did in VB first and had it translated to C# in order to implement.... BUT: The translation from SharpDevelop, which seemed to work fine, is not recognized by the Visual Studio compiler.

Maybe someone of you could help me find what's wrong? Here's the translation from SD: public int[] FromArray(Array RGBArray)
{
int[] returnValue = new int[imageHeight];

for (int i = 0; i <span class="code-keyword">