Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ValueExpressions.cs
- XslException.cs
- CqlParserHelpers.cs
- IndentedTextWriter.cs
- XmlnsDefinitionAttribute.cs
- ComboBoxRenderer.cs
- SendingRequestEventArgs.cs
- MissingMemberException.cs
- ToggleButtonAutomationPeer.cs
- PropagatorResult.cs
- StylusPointPropertyId.cs
- StartUpEventArgs.cs
- CreateUserWizardStep.cs
- PnrpPermission.cs
- AppDomainFactory.cs
- LocatorPart.cs
- SerialPort.cs
- RegionData.cs
- OdbcDataAdapter.cs
- GridViewDeleteEventArgs.cs
- ReaderWriterLock.cs
- DataGridViewComboBoxCell.cs
- XhtmlTextWriter.cs
- SplitContainer.cs
- SQLDecimal.cs
- coordinatorfactory.cs
- HttpTransportSecurityElement.cs
- DesignerWidgets.cs
- DataContractSerializer.cs
- MediaElement.cs
- RelationshipManager.cs
- Logging.cs
- Button.cs
- GeometryValueSerializer.cs
- BinaryObjectReader.cs
- MimeMapping.cs
- VirtualizedItemProviderWrapper.cs
- NCryptSafeHandles.cs
- StylusPointPropertyId.cs
- EllipticalNodeOperations.cs
- CheckedListBox.cs
- ExpressionLink.cs
- CodeTypeReferenceCollection.cs
- DmlSqlGenerator.cs
- XhtmlBasicSelectionListAdapter.cs
- Attributes.cs
- LazyTextWriterCreator.cs
- DataGridColumnHeaderAutomationPeer.cs
- PerformanceCountersElement.cs
- Pipe.cs
- RoleServiceManager.cs
- Timer.cs
- ConsoleKeyInfo.cs
- KeyedHashAlgorithm.cs
- FolderBrowserDialogDesigner.cs
- Effect.cs
- SystemIcons.cs
- Logging.cs
- PrintDialog.cs
- BStrWrapper.cs
- DesignerActionTextItem.cs
- DependencyPropertyChangedEventArgs.cs
- RuleSet.cs
- WebPartTransformer.cs
- RegularExpressionValidator.cs
- OdbcStatementHandle.cs
- FlowDocument.cs
- BufferedGraphics.cs
- SamlAssertionKeyIdentifierClause.cs
- Subtree.cs
- DynamicEntity.cs
- NonVisualControlAttribute.cs
- Error.cs
- StatusBar.cs
- LogicalExpr.cs
- VersionPair.cs
- _KerberosClient.cs
- CultureInfo.cs
- externdll.cs
- CodeTypeParameter.cs
- SystemDiagnosticsSection.cs
- WindowsTokenRoleProvider.cs
- DataBoundControl.cs
- listitem.cs
- CodeTypeDeclaration.cs
- DataGridColumnCollection.cs
- StringStorage.cs
- Semaphore.cs
- SpeechRecognizer.cs
- GridViewRowPresenterBase.cs
- MarshalByRefObject.cs
- QueryStringConverter.cs
- AndCondition.cs
- DelegateHelpers.cs
- TreeNodeStyleCollection.cs
- XmlName.cs
- CatalogPartChrome.cs
- ContainerFilterService.cs
- ExpressionLexer.cs
- ReaderWriterLock.cs