Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Runtime / InteropServices / CurrencyWrapper.cs / 1 / CurrencyWrapper.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: CurrencyWrapper.
**
**
** Purpose: Wrapper that is converted to a variant with VT_CURRENCY.
**
**
=============================================================================*/
namespace System.Runtime.InteropServices {
using System;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class CurrencyWrapper
{
public CurrencyWrapper(Decimal obj)
{
m_WrappedObject = obj;
}
public CurrencyWrapper(Object obj)
{
if (!(obj is Decimal))
throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDecimal"), "obj");
m_WrappedObject = (Decimal)obj;
}
public Decimal WrappedObject
{
get
{
return m_WrappedObject;
}
}
private Decimal m_WrappedObject;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: CurrencyWrapper.
**
**
** Purpose: Wrapper that is converted to a variant with VT_CURRENCY.
**
**
=============================================================================*/
namespace System.Runtime.InteropServices {
using System;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class CurrencyWrapper
{
public CurrencyWrapper(Decimal obj)
{
m_WrappedObject = obj;
}
public CurrencyWrapper(Object obj)
{
if (!(obj is Decimal))
throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDecimal"), "obj");
m_WrappedObject = (Decimal)obj;
}
public Decimal WrappedObject
{
get
{
return m_WrappedObject;
}
}
private Decimal m_WrappedObject;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeNativeMethodsMilCoreApi.cs
- XmlCharType.cs
- AssemblyCollection.cs
- Object.cs
- WorkerProcess.cs
- SmiXetterAccessMap.cs
- HMACSHA1.cs
- HwndHostAutomationPeer.cs
- SdlChannelSink.cs
- MLangCodePageEncoding.cs
- DataGridTable.cs
- DataBindingExpressionBuilder.cs
- DeleteHelper.cs
- FixedSOMTableCell.cs
- AlternationConverter.cs
- Common.cs
- XmlSchemaProviderAttribute.cs
- SkewTransform.cs
- Size3DConverter.cs
- newinstructionaction.cs
- LOSFormatter.cs
- InstancePersistence.cs
- MULTI_QI.cs
- XmlSerializationGeneratedCode.cs
- ManualResetEvent.cs
- DataRowView.cs
- WinEventTracker.cs
- COSERVERINFO.cs
- GroupJoinQueryOperator.cs
- GradientSpreadMethodValidation.cs
- IndependentlyAnimatedPropertyMetadata.cs
- TypeValidationEventArgs.cs
- ValueOfAction.cs
- RuntimeHelpers.cs
- _HeaderInfoTable.cs
- TextBoxLine.cs
- AQNBuilder.cs
- MatrixTransform3D.cs
- FormViewInsertedEventArgs.cs
- BitmapEffectGroup.cs
- ReliableOutputSessionChannel.cs
- HttpProfileGroupBase.cs
- Int16Storage.cs
- RectIndependentAnimationStorage.cs
- SizeIndependentAnimationStorage.cs
- TextRenderer.cs
- EncoderReplacementFallback.cs
- ExeConfigurationFileMap.cs
- ImageCodecInfoPrivate.cs
- IRCollection.cs
- ActivityCodeGenerator.cs
- XhtmlConformanceSection.cs
- SpotLight.cs
- MobileUserControlDesigner.cs
- NetNamedPipeBindingElement.cs
- QueryableFilterUserControl.cs
- PersistenceTypeAttribute.cs
- ClientConfigPaths.cs
- AccessedThroughPropertyAttribute.cs
- CustomErrorsSectionWrapper.cs
- ToolStripPanelCell.cs
- CombinedGeometry.cs
- loginstatus.cs
- Wizard.cs
- ListViewDeletedEventArgs.cs
- DataList.cs
- Transactions.cs
- FileSystemWatcher.cs
- SmiRequestExecutor.cs
- CryptoHandle.cs
- OleDbException.cs
- EventTask.cs
- SafeHandles.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- COM2FontConverter.cs
- ControlBindingsConverter.cs
- DBCommandBuilder.cs
- ObsoleteAttribute.cs
- DbConnectionPoolOptions.cs
- MDIWindowDialog.cs
- CharEntityEncoderFallback.cs
- AppDomain.cs
- SafeRightsManagementHandle.cs
- Function.cs
- HtmlForm.cs
- MessageSecurityOverTcp.cs
- TypeForwardedToAttribute.cs
- KeyToListMap.cs
- BinaryKeyIdentifierClause.cs
- SingleConverter.cs
- DataGridPagerStyle.cs
- Array.cs
- EventWaitHandleSecurity.cs
- XpsFontSerializationService.cs
- TextTreeFixupNode.cs
- SaveFileDialog.cs
- TextOnlyOutput.cs
- ActivityContext.cs
- EnumerableRowCollection.cs
- TextModifier.cs