Files
Dec2017-Script-Dump/mscorlib/System/Runtime/InteropServices/BStrWrapper.cs
T
2026-06-04 11:42:34 +02:00

35 lines
1.2 KiB
C#

using System;
namespace System.Runtime.InteropServices
{
/// <summary>Marshals data of type VT_BSTR from managed to unmanaged code. This class cannot be inherited.</summary>
// Token: 0x020002F2 RID: 754
[ComVisible(true)]
[Serializable]
public sealed class BStrWrapper
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.BStrWrapper" /> class with the specified <see cref="T:System.String" /> object.</summary>
/// <param name="value">The <see cref="T:System.String" /> object to wrap and marshal as VT_BSTR.</param>
// Token: 0x060021BE RID: 8638 RVA: 0x00078FE4 File Offset: 0x000771E4
public BStrWrapper(string value)
{
this._value = value;
}
/// <summary>Gets the wrapped <see cref="T:System.String" /> object to marshal as type VT_BSTR.</summary>
/// <returns>The <see cref="T:System.String" /> object wrapped by <see cref="T:System.Runtime.InteropServices.BStrWrapper" />.</returns>
// Token: 0x1700063A RID: 1594
// (get) Token: 0x060021BF RID: 8639 RVA: 0x00078FF4 File Offset: 0x000771F4
public string WrappedObject
{
get
{
return this._value;
}
}
// Token: 0x04000CC6 RID: 3270
private string _value;
}
}