using System;
namespace FooBar; { public class MyClass { /* Example of constructor method. */
public MyClass() { Console.WriteLine( "Constructor of MyClass" ); } /* Const value. */ public const int MyConst = 12;
/* Field */ public int MyField = 34; public int Field2 = 444;
/* Method. */ public int getval() { return( 1234 ); }
/* Property. */
public int MyProperty { get { return MyField; } set { MyField = value; } }
/* Event definition. */
public event EventHandler MyEvent;
/* Enum definition. */ public enum myenum { val1 = 3, val2 = 8 } } }
|