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
- LicenseContext.cs
- Math.cs
- Vector.cs
- FunctionUpdateCommand.cs
- SQLInt64Storage.cs
- StoreAnnotationsMap.cs
- InvokeMethodActivityDesigner.cs
- StateDesigner.LayoutSelectionGlyph.cs
- HandleCollector.cs
- EdmTypeAttribute.cs
- ControlUtil.cs
- LinqMaximalSubtreeNominator.cs
- EdmMember.cs
- HitTestDrawingContextWalker.cs
- ContractsBCL.cs
- AuthenticationModulesSection.cs
- ToolStrip.cs
- ACE.cs
- WeakEventTable.cs
- OneOfScalarConst.cs
- SoapAttributes.cs
- InputScopeManager.cs
- ContractCodeDomInfo.cs
- UnsafeNativeMethodsMilCoreApi.cs
- TemplateControlParser.cs
- WebPartManagerInternals.cs
- EmbeddedMailObject.cs
- XmlExpressionDumper.cs
- Bold.cs
- CfgArc.cs
- RecognizerStateChangedEventArgs.cs
- XpsImage.cs
- PersonalizationState.cs
- TraceUtils.cs
- BaseHashHelper.cs
- AccessViolationException.cs
- ToolTipService.cs
- TextServicesProperty.cs
- SqlLiftIndependentRowExpressions.cs
- Localizer.cs
- DataGridTextBoxColumn.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Light.cs
- validation.cs
- DaylightTime.cs
- Animatable.cs
- ListViewDataItem.cs
- AmbientValueAttribute.cs
- StringInfo.cs
- PartEditor.cs
- XmlWrappingReader.cs
- WebBrowserDocumentCompletedEventHandler.cs
- OutputScopeManager.cs
- Pair.cs
- TypeUsageBuilder.cs
- FieldNameLookup.cs
- DataSourceControlBuilder.cs
- XmlUTF8TextWriter.cs
- BinaryUtilClasses.cs
- OdbcError.cs
- MimeMultiPart.cs
- OleDbError.cs
- CacheHelper.cs
- AdornerDecorator.cs
- Buffer.cs
- SqlTypeSystemProvider.cs
- NamespaceEmitter.cs
- SqlTypeSystemProvider.cs
- DoubleAnimation.cs
- LocalizationComments.cs
- CapabilitiesSection.cs
- Restrictions.cs
- BooleanProjectedSlot.cs
- WebPartExportVerb.cs
- EpmCustomContentWriterNodeData.cs
- PenCursorManager.cs
- ArrayConverter.cs
- ITextView.cs
- Line.cs
- BufferedGraphicsContext.cs
- MetabaseServerConfig.cs
- HostProtectionException.cs
- CodeParameterDeclarationExpression.cs
- CheckBoxList.cs
- CustomAttributeSerializer.cs
- WebPartConnectVerb.cs
- GCHandleCookieTable.cs
- WindowsStreamSecurityUpgradeProvider.cs
- DataGridViewEditingControlShowingEventArgs.cs
- dataprotectionpermission.cs
- SetStoryboardSpeedRatio.cs
- HttpHandlerAction.cs
- ExtenderProvidedPropertyAttribute.cs
- LayoutExceptionEventArgs.cs
- SoapException.cs
- CommentEmitter.cs
- TypeDefinition.cs
- JapaneseLunisolarCalendar.cs
- ColorConvertedBitmapExtension.cs
- Selector.cs