[Top][All Lists]
[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
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/InteropServices DllImportAttribute.cs,1.4,1.5,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.890,1.891
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_oper.tc,1.38,1.39 cs_lookup.c,1.25,1.26
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.890,1.891
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_oper.tc,1.38,1.39 cs_lookup.c,1.25,1.26
- Index(es):