dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/InteropService


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/InteropServices DllImportAttribute.cs,1.4,1.5
Date: Tue, 06 May 2003 05:55:10 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices
In directory 
subversions:/tmp/cvs-serv17685/runtime/System/Runtime/InteropServices

Modified Files:
        DllImportAttribute.cs 
Log Message:


Allow "DllImportAttribute" to also be used on fields, to support
PInvoke importing of global variables from shared objects.


Index: DllImportAttribute.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices/DllImportAttribute.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** DllImportAttribute.cs       23 Apr 2003 05:39:49 -0000      1.4
--- DllImportAttribute.cs       6 May 2003 09:55:07 -0000       1.5
***************
*** 25,29 ****
  #if CONFIG_RUNTIME_INFRA
  
! [AttributeUsage(AttributeTargets.Method, AllowMultiple=false, 
Inherited=false)]
  public sealed class DllImportAttribute : Attribute
  {
--- 25,34 ----
  #if CONFIG_RUNTIME_INFRA
  
! // The ECMA spec says that "DllImportAttribute" can only be used on
! // methods.  However, the underlying metadata allows fields also, and
! // it is useful to be able to import global variables from shared objects.
! 
! [AttributeUsage(AttributeTargets.Method | AttributeTargets.Field,
!                               AllowMultiple=false, Inherited=false)]
  public sealed class DllImportAttribute : Attribute
  {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]