Gets a FieldInfo for the field represented by the specified handle.
using System; using System.Reflection; public class FieldInfo_GetFieldFromHandle { public string x; public char y; public float a; public int b; public static void Main() { Type myType = typeof(FieldInfo_GetFieldFromHandle); FieldInfo [] myFieldInfoArray = myType.GetFields(); RuntimeFieldHandle myRuntimeFieldHandle; for(int i = 0; i < myFieldInfoArray.Length; i++) { myRuntimeFieldHandle = myFieldInfoArray[i].FieldHandle; FieldInfo myFieldInfo = FieldInfo.GetFieldFromHandle(myRuntimeFieldHandle); Console.WriteLine("{0}", myFieldInfo); } } }