15 lines
351 B
Plaintext
15 lines
351 B
Plaintext
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[] |