Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChtmlPhoneCallAdapter.cs
- UserNameSecurityTokenParameters.cs
- WizardForm.cs
- ObjectDataSourceEventArgs.cs
- RelationalExpressions.cs
- SystemIcmpV4Statistics.cs
- counter.cs
- ResourceDescriptionAttribute.cs
- PropertyCondition.cs
- Activity.cs
- XmlSequenceWriter.cs
- DataServiceClientException.cs
- LinkLabel.cs
- XmlWrappingReader.cs
- MetafileHeader.cs
- LoaderAllocator.cs
- ScalarOps.cs
- RequestCachePolicy.cs
- PackageRelationshipSelector.cs
- PtsHelper.cs
- EmbeddedObject.cs
- XmlPreloadedResolver.cs
- BlurEffect.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- BitmapImage.cs
- DataGridPageChangedEventArgs.cs
- DocumentViewerHelper.cs
- RankException.cs
- EntityDataSourceReferenceGroup.cs
- UIElement.cs
- PrePostDescendentsWalker.cs
- DataGridViewCellEventArgs.cs
- ImageMetadata.cs
- IsolatedStorageFilePermission.cs
- FlowPosition.cs
- GenerateTemporaryTargetAssembly.cs
- ClassGenerator.cs
- DesignColumnCollection.cs
- MenuItemStyleCollection.cs
- StylusEditingBehavior.cs
- latinshape.cs
- FloatUtil.cs
- PrintDialog.cs
- SupportsPreviewControlAttribute.cs
- PKCS1MaskGenerationMethod.cs
- PagedDataSource.cs
- sqlpipe.cs
- XmlObjectSerializerWriteContextComplex.cs
- UdpChannelFactory.cs
- SecurityPolicySection.cs
- DataGridCellInfo.cs
- IgnoreSectionHandler.cs
- CacheEntry.cs
- DataObject.cs
- FontCollection.cs
- StatusStrip.cs
- ThicknessConverter.cs
- BooleanExpr.cs
- CommandHelpers.cs
- InstallerTypeAttribute.cs
- SR.cs
- DiscardableAttribute.cs
- WinFormsUtils.cs
- StickyNoteContentControl.cs
- PolicyChain.cs
- DynamicRouteExpression.cs
- InternalSafeNativeMethods.cs
- ObjectQueryState.cs
- Internal.cs
- OdbcConnectionOpen.cs
- X509ScopedServiceCertificateElement.cs
- HtmlTableRow.cs
- InternalConfigEventArgs.cs
- PhysicalOps.cs
- UnsafeNativeMethodsPenimc.cs
- CompilerCollection.cs
- SqlXmlStorage.cs
- ProviderConnectionPoint.cs
- NavigationPropertyEmitter.cs
- CodeFieldReferenceExpression.cs
- RenderOptions.cs
- XPathSelectionIterator.cs
- HelpEvent.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- Int16AnimationBase.cs
- FlagsAttribute.cs
- Button.cs
- SpellerError.cs
- RegexTree.cs
- SafeFileMappingHandle.cs
- ManagedFilter.cs
- DataGridViewRowConverter.cs
- SafeNativeMethodsCLR.cs
- DataRowChangeEvent.cs
- XsltException.cs
- StylusCollection.cs
- TextBoxAutomationPeer.cs
- SHA1.cs
- MailWebEventProvider.cs
- InlineCollection.cs