Passing Arrays In & Out of Custom Controls?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the best way to pass an array in and out of a control in C#. As a
very simple example, suppose I have a control which displays 4 critical
pieces of statistical info like the Mean, St-Dev, Min, and Max of a 1D array
input.

I'd like to see this array of numbers as a property which I can set...then
when I set it, the calculations are automatically done and displayed in the
control.

Ultimately I could add fancier stuff like graphs and more complex analysis
(which the user could choose to display or turn off). What is the best way to
pass the 1D array in and out of the control? Whenever I go to the 'Add
Property' wizard, there is no option for an array?

Thanks much to anyone who could take the time to answer.

Craig
 
Back
Top