C# FieldInfo IsPinvokeImpl
Description
FieldInfo IsPinvokeImpl
Gets a value indicating whether
the corresponding PinvokeImpl attribute is set in FieldAttributes.
Syntax
FieldInfo.IsPinvokeImpl
has the following syntax.
public bool IsPinvokeImpl { get; }
Example
using System;// w w w. ja v a 2 s .c om
using System.Reflection;
public class Fieldinfo_IsPinvoke
{
public string myField = "A public field";
public static void Main()
{
Fieldinfo_IsPinvoke myObject = new Fieldinfo_IsPinvoke();
Type myType1 = typeof(Fieldinfo_IsPinvoke);
FieldInfo myFieldInfo = myType1.GetField("myField",BindingFlags.Public|BindingFlags.Instance);
Console.Write("\n IsPinvokeImpl: {0}", myFieldInfo.IsPinvokeImpl );
}
}
The code above generates the following result.