File: system\runtime\interopservices\bstrwrapper.cs
Project: ndp\clr\src\bcl\mscorlib.csproj (mscorlib)
// ==++==
// 
//   Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// ==--==
/*=============================================================================
**
** Class: BStrWrapper.
**
**
** Purpose: Wrapper that is converted to a variant with VT_BSTR.
**
**
=============================================================================*/
 
namespace System.Runtime.InteropServices {
   
    using System;
    using System.Security;
    using System.Security.Permissions;
 
    [Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
    public sealed class BStrWrapper
    {
        [System.Security.SecuritySafeCritical]  // auto-generated
#pragma warning disable 618
        [SecurityPermissionAttribute(SecurityAction.Demand,Flags=SecurityPermissionFlag.UnmanagedCode)]
#pragma warning restore 618
        public BStrWrapper(String value)
        {
            m_WrappedObject = value;
        }
 
        [System.Security.SecuritySafeCritical]  // auto-generated
#pragma warning disable 618
        [SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
#pragma warning restore 618
        public BStrWrapper(Object value)
        {
            m_WrappedObject = (String)value;
        }
 
        public String WrappedObject 
        {
            get 
            {
                return m_WrappedObject;
            }
        }
 
        private String m_WrappedObject;
    }
}