Arrays in MOBILE DEVICE APPLICATION PROJECT

  • Thread starter Thread starter Sylvia Arun
  • Start date Start date
S

Sylvia Arun

Very strange, when I create a project as MOBILE APPLICATION FOR SMALL
DEVICES and run this simple code, it fails to compile.

int[] arr = new int[5];
for (int i = 0; i < arr.Length; i++)
arr = i * i;
Is this a bug in .NET COMPACT framework.

Please advise ASAP
New to asp and .net

thank you
 
Sylvia:

You've declared the array but you haven't inialized it/any values. What
compilation error are you getting though? There are many things that can go
wrong with CF deployment..so the specific error would help out.
 
Back
Top