Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SetWin32ContextInIDispatchAttribute.cs: added
* VariantWrapper.cs: added svn path=/trunk/mcs/; revision=28429
- Loading branch information
Gert Driesen
committed
May 29, 2004
1 parent
33a27d2
commit 52b617c
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
mcs/class/corlib/System.Runtime.InteropServices/SetWin32ContextInIDispatchAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// System.Runtime.InteropServices.SetWin32ContextInIDispatchAttribute.cs | ||
// | ||
// Author: | ||
// Gert Driesen (drieseng@users.sourceforge.net) | ||
// | ||
// (C) Novell, Inc. http://www.ximian.com | ||
// | ||
|
||
using System; | ||
|
||
namespace System.Runtime.InteropServices | ||
{ | ||
[AttributeUsage (AttributeTargets.Assembly, Inherited = false)] | ||
public sealed class SetWin32ContextInIDispatchAttribute : Attribute | ||
{ | ||
public SetWin32ContextInIDispatchAttribute () | ||
{ | ||
} | ||
} | ||
} | ||
|
29 changes: 29 additions & 0 deletions
29
mcs/class/corlib/System.Runtime.InteropServices/VariantWrapper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// System.Runtime.InteropServices.VariantWrapper.cs | ||
// | ||
// Author: | ||
// Gert Driesen (drieseng@users.sourceforge.net) | ||
// | ||
// (C) Novell, Inc. http://www.ximian.com | ||
// | ||
|
||
namespace System.Runtime.InteropServices | ||
{ | ||
public sealed class VariantWrapper | ||
{ | ||
private object _wrappedObject; | ||
|
||
public VariantWrapper (object obj) | ||
{ | ||
_wrappedObject = obj; | ||
} | ||
|
||
public object WrappedObject | ||
{ | ||
get | ||
{ | ||
return _wrappedObject; | ||
} | ||
} | ||
} | ||
} |