public int age { get; set; }
public String gestion { get; set; }
public String inicio { get; set; }
public String fin { get; set; }
public String descripcion { get; set; }
private int x { get; set; }
public static void Main()
Type Datos = typeof (MGestion);
Console.WriteLine("Los campos de la clase '" + Datos.Name + "', son:");
foreach (FieldInfo F in Datos.GetFields())
Console.WriteLine("Nombre: '{0,-12}', Tipo: '{1,-10}'", F.Name, F.FieldType.Name);
Console.WriteLine("Las propiedades de la clase '" + Datos.Name + "' son:");
foreach (PropertyInfo F in Datos.GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance))
Console.WriteLine("Nombre: '{0,-12}', Tipo: '{1,-10}'", F.Name, F.PropertyType);