Hi !
---
What is wrong with the code :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Test1
{
public partial class Form1 : Form
{
public A aa;
public Form1()
{
aa = new A(10);
InitializeComponent(); // <--- BreakPoint
}
}
public class A
{
public B b;
public A(int n)
{
b = new B;
}
}
public class B
{
public C[] c;
public int x;
public B(int num)
{
x = num;
c = new C[num];
}
}
public class C
{
public int[] n=new int[200];
private int f;
public int F
{
set
{
f = value;
}
get
{
return f;
}
}
}
}
when I try to debug and see 'c' (no-CAP) I only see 10 cells with nulls instead of cells with 200 int with let's say '0' value !!!
Thanks !!
---
What is wrong with the code :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Test1
{
public partial class Form1 : Form
{
public A aa;
public Form1()
{
aa = new A(10);
InitializeComponent(); // <--- BreakPoint
}
}
public class A
{
public B b;
public A(int n)
{
b = new B;
}
}
public class B
{
public C[] c;
public int x;
public B(int num)
{
x = num;
c = new C[num];
}
}
public class C
{
public int[] n=new int[200];
private int f;
public int F
{
set
{
f = value;
}
get
{
return f;
}
}
}
}
when I try to debug and see 'c' (no-CAP) I only see 10 cells with nulls instead of cells with 200 int with let's say '0' value !!!
Thanks !!