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
- DoubleAnimation.cs
- DataGridViewCheckBoxCell.cs
- MeshGeometry3D.cs
- SafeThemeHandle.cs
- SrgsElementFactory.cs
- DataListComponentEditor.cs
- PathSegment.cs
- XmlSchemaGroupRef.cs
- DependencyPropertyChangedEventArgs.cs
- ObjectSet.cs
- DispatchOperation.cs
- EventLogReader.cs
- EdmFunction.cs
- DbDataSourceEnumerator.cs
- DesigntimeLicenseContextSerializer.cs
- cookiecollection.cs
- GridLength.cs
- DurationConverter.cs
- TreeViewAutomationPeer.cs
- ServerType.cs
- SecurityTokenAuthenticator.cs
- QueryOpcode.cs
- XmlResolver.cs
- _IPv6Address.cs
- PrivilegeNotHeldException.cs
- FlowPanelDesigner.cs
- HtmlInputFile.cs
- PerformanceCounters.cs
- SqlDataReaderSmi.cs
- IndentedWriter.cs
- PackagePart.cs
- Multiply.cs
- NumberAction.cs
- WeakReferenceEnumerator.cs
- SingleSelectRootGridEntry.cs
- ResourceContainer.cs
- PaintEvent.cs
- ImageCodecInfo.cs
- CryptoApi.cs
- SecurityTokenException.cs
- GlyphingCache.cs
- SudsParser.cs
- FileDialogCustomPlacesCollection.cs
- StrokeNodeOperations2.cs
- LineUtil.cs
- _HelperAsyncResults.cs
- safelinkcollection.cs
- OleDbRowUpdatedEvent.cs
- ClientSettingsSection.cs
- FixedSOMGroup.cs
- ButtonBaseAutomationPeer.cs
- DependencySource.cs
- VirtualDirectoryMappingCollection.cs
- RayHitTestParameters.cs
- SqlCharStream.cs
- XhtmlConformanceSection.cs
- Pointer.cs
- SystemException.cs
- BCryptNative.cs
- DelegateCompletionCallbackWrapper.cs
- Context.cs
- StaticContext.cs
- SafeNativeMethods.cs
- UIElementParaClient.cs
- Renderer.cs
- SafeNativeMethods.cs
- PermissionSet.cs
- _CacheStreams.cs
- BrowserCapabilitiesFactory.cs
- WebService.cs
- ConstraintEnumerator.cs
- EntityTypeBase.cs
- ValueUtilsSmi.cs
- BamlResourceDeserializer.cs
- User.cs
- GridEntryCollection.cs
- TrackPoint.cs
- HttpContextWrapper.cs
- DataGridViewCell.cs
- ExpressionLexer.cs
- PerspectiveCamera.cs
- WebPartVerbsEventArgs.cs
- Operator.cs
- AuthenticationModulesSection.cs
- SerializationObjectManager.cs
- Misc.cs
- MarkupWriter.cs
- EditorZoneBase.cs
- DataGridViewRowsAddedEventArgs.cs
- XmlAnyElementAttributes.cs
- VersionedStream.cs
- Transform3DCollection.cs
- CacheAxisQuery.cs
- CopyNodeSetAction.cs
- ListControl.cs
- OleDbErrorCollection.cs
- MetadataReference.cs
- Collection.cs
- AssemblyBuilder.cs
- ManipulationDelta.cs