diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/UnknownWrapper.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/UnknownWrapper.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/UnknownWrapper.cs b/src/mscorlib/src/System/Runtime/InteropServices/UnknownWrapper.cs new file mode 100644 index 0000000000..c9084f715f --- /dev/null +++ b/src/mscorlib/src/System/Runtime/InteropServices/UnknownWrapper.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +/*============================================================================= +** +** +** +** Purpose: Wrapper that is converted to a variant with VT_UNKNOWN. +** +** +=============================================================================*/ + +namespace System.Runtime.InteropServices { + + using System; + + [Serializable] +[System.Runtime.InteropServices.ComVisible(true)] + public sealed class UnknownWrapper + { + public UnknownWrapper(Object obj) + { + m_WrappedObject = obj; + } + + public Object WrappedObject + { + get + { + return m_WrappedObject; + } + } + + private Object m_WrappedObject; + } +} |