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
- ListSortDescription.cs
- CounterSampleCalculator.cs
- ChangePasswordDesigner.cs
- SqlException.cs
- ObfuscateAssemblyAttribute.cs
- DataSourceControlBuilder.cs
- Compilation.cs
- ProviderConnectionPoint.cs
- ByeMessageCD1.cs
- ConfigXmlCDataSection.cs
- Int32Storage.cs
- MultipartContentParser.cs
- ReliableMessagingVersionConverter.cs
- tooltip.cs
- FontNameConverter.cs
- GcSettings.cs
- WebBodyFormatMessageProperty.cs
- dbdatarecord.cs
- KeyedHashAlgorithm.cs
- FeedUtils.cs
- SweepDirectionValidation.cs
- StateMachineHelpers.cs
- BindingListCollectionView.cs
- ScriptReferenceBase.cs
- ExpressionSelection.cs
- HttpResponseHeader.cs
- x509store.cs
- DynamicValidator.cs
- EventLogTraceListener.cs
- BamlBinaryReader.cs
- GacUtil.cs
- ObjectQuery_EntitySqlExtensions.cs
- VoiceChangeEventArgs.cs
- BindingsCollection.cs
- ItemDragEvent.cs
- BuildManager.cs
- ToolStripRendererSwitcher.cs
- LifetimeServices.cs
- BamlResourceDeserializer.cs
- WebPartEventArgs.cs
- iisPickupDirectory.cs
- RtfControls.cs
- EventSinkActivity.cs
- Tablet.cs
- ZipIOLocalFileDataDescriptor.cs
- Base64Stream.cs
- TcpServerChannel.cs
- XPathScanner.cs
- SamlNameIdentifierClaimResource.cs
- ShaperBuffers.cs
- MetadataCollection.cs
- EntitySqlException.cs
- DesignerWithHeader.cs
- PageVisual.cs
- HttpHeaderCollection.cs
- GeneralTransform3DTo2DTo3D.cs
- SmtpNetworkElement.cs
- ComponentSerializationService.cs
- SpellerHighlightLayer.cs
- TrackingDataItem.cs
- TreeViewTemplateSelector.cs
- ComponentDesigner.cs
- UTF32Encoding.cs
- NetTcpSecurityElement.cs
- LinearGradientBrush.cs
- ArrayList.cs
- SafeCryptoHandles.cs
- _NegoStream.cs
- OutputWindow.cs
- FrameworkPropertyMetadata.cs
- PersonalizationAdministration.cs
- HttpRequestCacheValidator.cs
- GiveFeedbackEventArgs.cs
- SplitterEvent.cs
- DelimitedListTraceListener.cs
- SetStoryboardSpeedRatio.cs
- IndexedEnumerable.cs
- recordstate.cs
- Semaphore.cs
- BaseTemplateParser.cs
- CngProperty.cs
- ColorInterpolationModeValidation.cs
- XPathArrayIterator.cs
- DataRow.cs
- DataServiceRequestOfT.cs
- ModelUIElement3D.cs
- EndPoint.cs
- Encoding.cs
- RectKeyFrameCollection.cs
- LayoutTableCell.cs
- SessionStateSection.cs
- WorkflowInstanceContextProvider.cs
- SiblingIterators.cs
- XmlReader.cs
- DataFormats.cs
- ExclusiveNamedPipeTransportManager.cs
- HierarchicalDataBoundControlAdapter.cs
- SecurityVersion.cs
- ProgressChangedEventArgs.cs
- WindowsGraphics2.cs