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
- CompressStream.cs
- ConfigDefinitionUpdates.cs
- CollectionEditorDialog.cs
- UnsafeNativeMethods.cs
- CompatibleComparer.cs
- ControlCollection.cs
- LightweightCodeGenerator.cs
- CqlBlock.cs
- XmlAttributeCache.cs
- BaseHashHelper.cs
- SafeNativeMethods.cs
- HttpWebResponse.cs
- PropertyChangeTracker.cs
- ByteAnimation.cs
- _SslSessionsCache.cs
- CompensationTokenData.cs
- ImageListUtils.cs
- SqlServices.cs
- XslCompiledTransform.cs
- ThreadInterruptedException.cs
- Axis.cs
- DefaultBindingPropertyAttribute.cs
- FrameworkContentElement.cs
- SqlResolver.cs
- DispatcherSynchronizationContext.cs
- WindowsHyperlink.cs
- TransformPatternIdentifiers.cs
- CodeSubDirectory.cs
- GridSplitterAutomationPeer.cs
- FlowDocumentReader.cs
- ReturnType.cs
- DataMemberAttribute.cs
- TwoPhaseCommit.cs
- ProcessHostFactoryHelper.cs
- KeyValueSerializer.cs
- DataErrorValidationRule.cs
- ListViewSortEventArgs.cs
- Query.cs
- ParameterSubsegment.cs
- DbFunctionCommandTree.cs
- DocumentXPathNavigator.cs
- Point.cs
- ObjectListTitleAttribute.cs
- WorkerRequest.cs
- ContainerUIElement3D.cs
- FormatException.cs
- OperationFormatUse.cs
- ApplicationTrust.cs
- MeasureData.cs
- SQLInt64.cs
- ResourceAssociationType.cs
- ConfigurationErrorsException.cs
- SimplePropertyEntry.cs
- XPathEmptyIterator.cs
- Floater.cs
- CanonicalXml.cs
- StrongNameUtility.cs
- TreeViewImageKeyConverter.cs
- CodeIdentifier.cs
- DataGridCellsPanel.cs
- GreenMethods.cs
- ComponentChangingEvent.cs
- OutKeywords.cs
- CustomAttributeFormatException.cs
- SqlXmlStorage.cs
- IDispatchConstantAttribute.cs
- IsolatedStorageFileStream.cs
- SinglePageViewer.cs
- MetadataPropertyAttribute.cs
- XamlPointCollectionSerializer.cs
- ReversePositionQuery.cs
- StatusCommandUI.cs
- Misc.cs
- CrossSiteScriptingValidation.cs
- DataRowChangeEvent.cs
- SQLDoubleStorage.cs
- PersonalizationProviderCollection.cs
- GuidelineSet.cs
- TableRowCollection.cs
- PartManifestEntry.cs
- BitmapEffectState.cs
- XmlSchemaAnyAttribute.cs
- AdornerHitTestResult.cs
- VarInfo.cs
- BoundPropertyEntry.cs
- XamlSerializerUtil.cs
- UpdatePanelTrigger.cs
- UnsafeNativeMethods.cs
- SQLInt32Storage.cs
- VisualState.cs
- SecurityKeyIdentifier.cs
- mactripleDES.cs
- UriTemplateMatch.cs
- ReferenceService.cs
- ReadOnlyTernaryTree.cs
- ActiveXContainer.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MaskedTextBoxTextEditor.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ComplexTypeEmitter.cs