It sounds like really you're interested in properties:
foreach (Type type in myAssembly.GetTypes())
{
foreach (PropertyInfo property in type.GetProperties())
{
MessageBox.Show(property.Name + " - " + property.PropertyType);
}
}
EDIT: Okay, so it sounds like you really really want fields:
foreach (Type type in myAssembly.GetTypes())
{
foreach (FieldInfo field in type.GetFields(BindingFlags.Instance |
BindingFlags.Static |
BindingFlags.Public |
BindingFlags.NonPublic))
{
MessageBox.Show(field.Name + " - " + field.FieldType);
}
}