[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 ComVisibleAttribute.cs,NONE,1.1 |
Date: |
Thu, 07 Nov 2002 06:25:22 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/InteropServices
In directory
subversions:/tmp/cvs-serv25056/runtime/System/Runtime/InteropServices
Added Files:
ComVisibleAttribute.cs
Log Message:
Implement a number of enumerated types and attributes in
"System.ComponentModel".
--- NEW FILE ---
/*
* ComVisibleAttribute.cs - Implementation of the
* "System.Runtime.InteropServices.ComVisibleAttribute"
class.
*
* Copyright (C) 2001 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.InteropServices
{
#if !ECMA_COMPAT
[AttributeUsage(AttributeTargets.Assembly |
AttributeTargets.Class |
AttributeTargets.Struct |
AttributeTargets.Enum |
AttributeTargets.Method |
AttributeTargets.Property |
AttributeTargets.Field |
AttributeTargets.Interface |
AttributeTargets.Delegate, Inherited=false)]
public sealed class ComVisibleAttribute : Attribute
{
// Internal state.
private bool vis;
// Constructor.
public ComVisibleAttribute(bool visibility)
{
vis = visibility;
}
// Get the attribute's value.
public bool Value
{
get
{
return vis;
}
}
}; // class ComVisibleAttribute
#endif // !ECMA_COMPAT
}; // namespace System.Runtime.InteropServices
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/InteropServices ComVisibleAttribute.cs,NONE,1.1,
Rhys Weatherley <address@hidden> <=