include::../why-dotnet.adoc[]

[source,csharp]
----
static void Main(string[] args)
{
    System.Reflection.FieldInfo fieldInfo = ...;
    SafeHandle handle = (SafeHandle)fieldInfo.GetValue(rKey);
    IntPtr dangerousHandle = handle.DangerousGetHandle(); // Noncompliant
}
----

include::../resources-dotnet.adoc[]

include::../rspecator-dotnet.adoc[]