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
- CharStorage.cs
- BypassElementCollection.cs
- GZipStream.cs
- HttpCacheVaryByContentEncodings.cs
- IIS7UserPrincipal.cs
- MexNamedPipeBindingCollectionElement.cs
- ObjectStorage.cs
- ManagementObject.cs
- OrderedHashRepartitionEnumerator.cs
- PtsContext.cs
- Control.cs
- ActivityXRefConverter.cs
- DataServiceQueryOfT.cs
- CharEnumerator.cs
- EditorPart.cs
- ElementNotEnabledException.cs
- QueryStringParameter.cs
- WsdlBuildProvider.cs
- EventListenerClientSide.cs
- Reference.cs
- String.cs
- BitVector32.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- BitmapSource.cs
- Attributes.cs
- DragEvent.cs
- ObjectStateManagerMetadata.cs
- ItemsControlAutomationPeer.cs
- HtmlElementEventArgs.cs
- OracleRowUpdatedEventArgs.cs
- RtType.cs
- WebPartDisplayMode.cs
- DateTimeOffsetConverter.cs
- XmlQueryStaticData.cs
- ToolStripHighContrastRenderer.cs
- SoapHelper.cs
- SymbolType.cs
- IncrementalReadDecoders.cs
- PathTooLongException.cs
- FontConverter.cs
- FieldNameLookup.cs
- DataGridViewRowConverter.cs
- VariableAction.cs
- XmlNodeList.cs
- ParameterElement.cs
- RemotingConfiguration.cs
- FrameAutomationPeer.cs
- CompressStream.cs
- CorrelationQuery.cs
- CaseInsensitiveComparer.cs
- SubMenuStyleCollection.cs
- DragAssistanceManager.cs
- FontWeightConverter.cs
- NameObjectCollectionBase.cs
- Vars.cs
- EntityContainer.cs
- CapabilitiesUse.cs
- CodeAssignStatement.cs
- DashStyles.cs
- PermissionSetTriple.cs
- UrlAuthFailedErrorFormatter.cs
- HttpConfigurationContext.cs
- CalendarAutomationPeer.cs
- BamlCollectionHolder.cs
- PipeStream.cs
- InputProcessorProfiles.cs
- JsonWriter.cs
- DynamicPhysicalDiscoSearcher.cs
- DataTableReaderListener.cs
- QilChoice.cs
- DataGridItem.cs
- OptimalBreakSession.cs
- DataGridViewCellEventArgs.cs
- ToolStripSplitButton.cs
- Matrix3D.cs
- BackgroundWorker.cs
- _DigestClient.cs
- DataObjectMethodAttribute.cs
- XmlMembersMapping.cs
- DesignerOptionService.cs
- PhysicalOps.cs
- ServiceDescriptionReflector.cs
- HtmlInputRadioButton.cs
- CapabilitiesUse.cs
- DataGridViewButtonColumn.cs
- DataPagerFieldCommandEventArgs.cs
- PKCS1MaskGenerationMethod.cs
- EntitySqlQueryCacheKey.cs
- AssociationTypeEmitter.cs
- SystemResourceKey.cs
- ReadOnlyState.cs
- PageAsyncTaskManager.cs
- AuthenticationException.cs
- CapabilitiesPattern.cs
- ActivityContext.cs
- GridViewItemAutomationPeer.cs
- SecurityPolicySection.cs
- PageContent.cs
- ModelTreeEnumerator.cs
- SecurityManager.cs