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
- CapiSymmetricAlgorithm.cs
- LinearQuaternionKeyFrame.cs
- ResolveRequestResponseAsyncResult.cs
- HttpWriter.cs
- ExternalCalls.cs
- ReadOnlyDictionary.cs
- SeekStoryboard.cs
- OneOfScalarConst.cs
- ProcessProtocolHandler.cs
- TypeElement.cs
- SynchronizationContext.cs
- VirtualPathProvider.cs
- ToolStripHighContrastRenderer.cs
- Icon.cs
- ColorConvertedBitmap.cs
- ObjectStateManagerMetadata.cs
- SingleObjectCollection.cs
- WebPartEditorApplyVerb.cs
- SqlFlattener.cs
- XmlSchemaSet.cs
- RightsManagementResourceHelper.cs
- RawTextInputReport.cs
- DrawingAttributeSerializer.cs
- Errors.cs
- X509Chain.cs
- ClientScriptManager.cs
- StorageSetMapping.cs
- DynamicQueryableWrapper.cs
- ToolZone.cs
- SplashScreen.cs
- NumberEdit.cs
- TraceRecords.cs
- TransactionOptions.cs
- mediaeventargs.cs
- ListSortDescriptionCollection.cs
- BadImageFormatException.cs
- CompositionAdorner.cs
- DrawingContextWalker.cs
- _NtlmClient.cs
- DbConnectionPoolOptions.cs
- CodeComment.cs
- ExpressionCopier.cs
- PassportIdentity.cs
- returneventsaver.cs
- ContentType.cs
- DefaultEventAttribute.cs
- BlurBitmapEffect.cs
- SplitterCancelEvent.cs
- ExpressionBuilderCollection.cs
- StrongNamePublicKeyBlob.cs
- HashMembershipCondition.cs
- RegexCharClass.cs
- HeaderCollection.cs
- ServiceModelReg.cs
- CommonXSendMessage.cs
- ObjectPropertyMapping.cs
- ListParagraph.cs
- UnsafeNativeMethods.cs
- KeyedHashAlgorithm.cs
- ItemCollection.cs
- CompilerTypeWithParams.cs
- RSAOAEPKeyExchangeFormatter.cs
- MetadataArtifactLoaderComposite.cs
- SerializerProvider.cs
- RichTextBoxConstants.cs
- RijndaelManaged.cs
- PerfCounters.cs
- FullTextBreakpoint.cs
- TickBar.cs
- VScrollBar.cs
- validation.cs
- WinEventQueueItem.cs
- SqlProfileProvider.cs
- HttpRuntimeSection.cs
- AncillaryOps.cs
- ActivityMarkupSerializationProvider.cs
- ProcessModule.cs
- RadioButtonRenderer.cs
- FilteredDataSetHelper.cs
- ActiveXHost.cs
- ScrollBar.cs
- PeerInvitationResponse.cs
- BasePattern.cs
- Misc.cs
- SafeThemeHandle.cs
- GridViewRowPresenter.cs
- BindingBase.cs
- DbExpressionBuilder.cs
- TypefaceMap.cs
- LocalizationComments.cs
- TextRangeEditLists.cs
- ComboBoxRenderer.cs
- XmlSchemaProviderAttribute.cs
- errorpatternmatcher.cs
- NetworkAddressChange.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Vars.cs
- DPTypeDescriptorContext.cs
- Convert.cs
- DPAPIProtectedConfigurationProvider.cs