Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IsCopyConstructed Class

Note: This class is new in the .NET Framework version 2.0.

Indicates that any copying of values of this type must use the copy constructor provided by the type. This class cannot be inherited.

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)] 
public static class IsCopyConstructed
/** @attribute ComVisibleAttribute(true) */ 
public final class IsCopyConstructed
ComVisibleAttribute(true) 
public final class IsCopyConstructed

Any type modified by the IsCopyConstructed class must implement a method named MarshalCopy that calls the native copy constructor.

Any native C++ type that is emitted into metadata with copy constructors needs to have those methods called by the marshaler when copying values across the marshaling boundary. The Microsoft C++ compiler modifies all native C++ types in method parameters and return types that have this modifier to trigger this behavior in the marshaling code.

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.

You can emit custom modifiers into metadata using one of the following techniques:

System.Object
  System.Runtime.CompilerServices.IsCopyConstructed
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.