fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18. Hoge Hoge1 = new Hoge(-1);
  19. Hoge[] Hoge2 = new Hoge[10]
  20. {
  21. new Hoge(0),new Hoge(1),new Hoge(2),new Hoge(3),new Hoge(4),
  22. new Hoge(5),new Hoge(6),new Hoge(7),new Hoge(8),new Hoge(9),
  23. };
  24. private void Form1_Load(object sender, EventArgs e)
  25. {
  26. TextBox t = new TextBox();
  27. t.Multiline = true;
  28. t.Dock = DockStyle.Fill;
  29. this.Controls.Add(t);
  30.  
  31. foreach (Hoge h in Hoge2)
  32. {
  33. t.AppendText(h.age.ToString() + Environment.NewLine);
  34. }
  35. }
  36. }
  37. public class Hoge
  38. {
  39. public int age { get; set; }
  40. public Hoge(int Age)
  41. {
  42. this.age = Age;
  43. }
  44. }
  45. }
  46.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty