﻿<?xml version="1.0" encoding="utf-8"?><Type Name="IsExplicitlyDereferenced" FullName="System.Runtime.CompilerServices.IsExplicitlyDereferenced"><TypeSignature Language="C#" Value="public static class IsExplicitlyDereferenced" /><TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit IsExplicitlyDereferenced extends System.Object" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Object</BaseTypeName></Base><Interfaces /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>In C++, managed pointers and managed references are emitted into metadata as pointers.  To distinguish between the two types in metadata, the Microsoft  C++ compiler applies this modifier to managed pointers.  It emits no modifier on managed reference types.  Compilers need to know the correct calling syntax when importing a method from metadata scope.  The <see cref="T:System.Runtime.CompilerServices.IsExplicitlyDereferenced" /> class and its partner, the <see cref="T:System.Runtime.CompilerServices.IsImplicitlyDereferenced" /> class, disambiguate reference parameters from pointer parameters.</para><para>Compilers emit custom modifiers within metadata to change the way that the just-in-time (JIT) compiler handles values when the default behavior is not appropriate.  When the JIT compiler encounters a custom modifier, it handles the value in the way that the modifier specifies.  Compilers can apply custom modifiers to methods, parameters, and return values.  The JIT compiler must respond to required modifiers but can ignore optional modifiers.  </para><para>You can emit custom modifiers into metadata using one of the following techniques:</para><list type="bullet"><item><para>Using methods in the <see cref="T:System.Reflection.Emit.TypeBuilder" /> class such as <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineMethod" />, <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineField" />, <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineConstructor" />, and <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineProperty" />.</para></item><item><para>Generating a Microsoft intermediate language (MSIL) instruction file that contains calls to modopt and modreq, and assembling the file with the <format type="text/html"><a href="4ca3a4f0-4400-47ce-8936-8e219961c76f">MSIL Assembler (Ilasm.exe)</a></format>.</para></item><item><para>Using the unmanaged reflection API.</para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates that a managed pointer represents a pointer parameter within a method signature. This class cannot be inherited.</para></summary></Docs><Members /></Type>