This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,47 @@
using System;
namespace System.Runtime.InteropServices
{
/// <summary>Wraps objects the marshaler should marshal as a VT_CY.</summary>
// Token: 0x02000306 RID: 774
[ComVisible(true)]
[Serializable]
public sealed class CurrencyWrapper
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.CurrencyWrapper" /> class with the Decimal to be wrapped and marshaled as type VT_CY.</summary>
/// <param name="obj">The Decimal to be wrapped and marshaled as VT_CY. </param>
// Token: 0x060021EA RID: 8682 RVA: 0x0007934C File Offset: 0x0007754C
public CurrencyWrapper(decimal obj)
{
this.currency = obj;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.CurrencyWrapper" /> class with the object containing the Decimal to be wrapped and marshaled as type VT_CY.</summary>
/// <param name="obj">The object containing the Decimal to be wrapped and marshaled as VT_CY. </param>
/// <exception cref="T:System.ArgumentException">The <paramref name="obj" /> parameter is not a <see cref="T:System.Decimal" /> type.</exception>
// Token: 0x060021EB RID: 8683 RVA: 0x0007935C File Offset: 0x0007755C
public CurrencyWrapper(object obj)
{
if (obj.GetType() != typeof(decimal))
{
throw new ArgumentException("obj has to be a Decimal type");
}
this.currency = (decimal)obj;
}
/// <summary>Gets the wrapped object to be marshaled as type VT_CY.</summary>
/// <returns>The wrapped object to be marshaled as type VT_CY.</returns>
// Token: 0x17000648 RID: 1608
// (get) Token: 0x060021EC RID: 8684 RVA: 0x0007939C File Offset: 0x0007759C
public decimal WrappedObject
{
get
{
return this.currency;
}
}
// Token: 0x04000CF9 RID: 3321
private decimal currency;
}
}