Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / CurrencyWrapper.cs / 1305376 / 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
- SystemColors.cs
- SettingsPropertyValue.cs
- NoneExcludedImageIndexConverter.cs
- PropertyCondition.cs
- LayoutTableCell.cs
- DictionaryChange.cs
- StaticDataManager.cs
- ClientType.cs
- TextTreeFixupNode.cs
- DataBoundControlAdapter.cs
- TextProperties.cs
- SimpleColumnProvider.cs
- URLIdentityPermission.cs
- SqlTriggerContext.cs
- FormattedTextSymbols.cs
- TextBoxAutoCompleteSourceConverter.cs
- DaylightTime.cs
- Context.cs
- TextTreeRootNode.cs
- URLMembershipCondition.cs
- XsltException.cs
- ValidatedControlConverter.cs
- RadioButton.cs
- DrawingVisual.cs
- safemediahandle.cs
- TemplateParser.cs
- PolicyImporterElement.cs
- OpenTypeLayout.cs
- FormViewPagerRow.cs
- TextBox.cs
- TcpTransportSecurity.cs
- BackStopAuthenticationModule.cs
- SqlUserDefinedTypeAttribute.cs
- RijndaelManagedTransform.cs
- SpAudioStreamWrapper.cs
- XmlCharCheckingReader.cs
- SmiGettersStream.cs
- CodeEntryPointMethod.cs
- CatchDesigner.xaml.cs
- SymLanguageType.cs
- AdCreatedEventArgs.cs
- MenuItemCollection.cs
- DriveNotFoundException.cs
- ResourceReader.cs
- X509ChainPolicy.cs
- SrgsItemList.cs
- UxThemeWrapper.cs
- DataTableMapping.cs
- DesignTimeParseData.cs
- ControlBuilderAttribute.cs
- StringResourceManager.cs
- StructuralObject.cs
- Dictionary.cs
- SecurityState.cs
- SafeEventLogWriteHandle.cs
- ApplicationException.cs
- WebUtil.cs
- PageStatePersister.cs
- CallbackDebugBehavior.cs
- DefaultEvaluationContext.cs
- TemplateBindingExtension.cs
- OdbcConnectionPoolProviderInfo.cs
- CapiHashAlgorithm.cs
- XmlChildNodes.cs
- ToolStripContainerDesigner.cs
- HotSpot.cs
- StartUpEventArgs.cs
- TemplateXamlParser.cs
- DBConnection.cs
- WebPartDeleteVerb.cs
- SimpleBitVector32.cs
- OutputCacheEntry.cs
- ReleaseInstanceMode.cs
- MatrixStack.cs
- ElementUtil.cs
- ErrorStyle.cs
- ComplexTypeEmitter.cs
- EUCJPEncoding.cs
- Buffer.cs
- Error.cs
- DBDataPermissionAttribute.cs
- MissingFieldException.cs
- TaskFileService.cs
- HtmlElementErrorEventArgs.cs
- HttpListener.cs
- X509Certificate.cs
- BulletChrome.cs
- CallbackHandler.cs
- DateTimeValueSerializerContext.cs
- GcSettings.cs
- ExceptionValidationRule.cs
- SerTrace.cs
- XamlTreeBuilderBamlRecordWriter.cs
- UdpChannelFactory.cs
- SelectedCellsCollection.cs
- ToolStripGrip.cs
- BitmapSizeOptions.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- CommonObjectSecurity.cs