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
- CodeComment.cs
- PopOutPanel.cs
- TextRangeEdit.cs
- FileLoadException.cs
- XmlObjectSerializerReadContextComplexJson.cs
- indexingfiltermarshaler.cs
- XmlQueryRuntime.cs
- OdbcException.cs
- ClaimComparer.cs
- XmlValidatingReaderImpl.cs
- QueryAccessibilityHelpEvent.cs
- TypeCodeDomSerializer.cs
- SourceElementsCollection.cs
- VisualTreeHelper.cs
- IndexedGlyphRun.cs
- QilExpression.cs
- XNodeSchemaApplier.cs
- ControlIdConverter.cs
- ObjectHandle.cs
- PartialCachingControl.cs
- SessionState.cs
- CompleteWizardStep.cs
- ListViewAutomationPeer.cs
- DbUpdateCommandTree.cs
- StrokeNodeOperations2.cs
- Window.cs
- BrowsableAttribute.cs
- MinimizableAttributeTypeConverter.cs
- WebResourceAttribute.cs
- SymbolUsageManager.cs
- EntityModelBuildProvider.cs
- SqlWebEventProvider.cs
- KeyInterop.cs
- ZipIOExtraField.cs
- PropertyGridView.cs
- AssemblyGen.cs
- MemoryFailPoint.cs
- ActivityExecutorSurrogate.cs
- ListViewContainer.cs
- ConfigXmlCDataSection.cs
- SafeBuffer.cs
- RegexCompilationInfo.cs
- StringUtil.cs
- ClientUtils.cs
- ActivityTrace.cs
- XamlBrushSerializer.cs
- Selector.cs
- TextEditorParagraphs.cs
- BinaryReader.cs
- VirtualPathProvider.cs
- PropertyManager.cs
- ValueChangedEventManager.cs
- PanelStyle.cs
- TextBoxBase.cs
- ActivityExecutorSurrogate.cs
- EventMappingSettings.cs
- DataGridViewCellPaintingEventArgs.cs
- SqlMultiplexer.cs
- ArrowControl.xaml.cs
- StrongNameUtility.cs
- TypeUtil.cs
- CodeCommentStatement.cs
- SingleConverter.cs
- ColumnWidthChangedEvent.cs
- ConfigurationSettings.cs
- ellipse.cs
- XNodeNavigator.cs
- MarkedHighlightComponent.cs
- Mapping.cs
- ProjectionRewriter.cs
- QueryContinueDragEvent.cs
- ItemList.cs
- FileIOPermission.cs
- DragEventArgs.cs
- AsyncSerializedWorker.cs
- SchemaNotation.cs
- _KerberosClient.cs
- MessageDesigner.cs
- JsonFormatReaderGenerator.cs
- CompModSwitches.cs
- EntityCollection.cs
- CapabilitiesSection.cs
- InkCanvasFeedbackAdorner.cs
- PropertyManager.cs
- WeakReferenceEnumerator.cs
- BindingEditor.xaml.cs
- altserialization.cs
- VisualTreeUtils.cs
- ClientSideQueueItem.cs
- EnumConverter.cs
- ListDataHelper.cs
- HwndTarget.cs
- DataGridPageChangedEventArgs.cs
- IIS7UserPrincipal.cs
- RegistryDataKey.cs
- InnerItemCollectionView.cs
- RenderData.cs
- Brush.cs
- CommandEventArgs.cs
- CustomPopupPlacement.cs