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
- WindowsListViewGroupSubsetLink.cs
- Attributes.cs
- ViewStateModeByIdAttribute.cs
- FreeFormPanel.cs
- ConfigPathUtility.cs
- EdmToObjectNamespaceMap.cs
- XPathNodePointer.cs
- InputScopeAttribute.cs
- PackagePartCollection.cs
- CrossContextChannel.cs
- TextBoxBase.cs
- GlyphingCache.cs
- SQlBooleanStorage.cs
- CompositeTypefaceMetrics.cs
- ItemsControlAutomationPeer.cs
- HexParser.cs
- PublisherMembershipCondition.cs
- KeyToListMap.cs
- GridView.cs
- CompilerInfo.cs
- TrackingDataItem.cs
- ClientProxyGenerator.cs
- UInt16Converter.cs
- Win32MouseDevice.cs
- AppDomainUnloadedException.cs
- DataGridViewSortCompareEventArgs.cs
- DiagnosticSection.cs
- parserscommon.cs
- ConfigXmlReader.cs
- StateMachineAction.cs
- SettingsContext.cs
- DesignerActionGlyph.cs
- StructuredTypeEmitter.cs
- DataGridViewColumn.cs
- UriWriter.cs
- PartitionedStream.cs
- AttachedPropertyDescriptor.cs
- DataGridViewControlCollection.cs
- Quaternion.cs
- PolicyFactory.cs
- XmlSerializerAssemblyAttribute.cs
- MetadataItemEmitter.cs
- WsdlBuildProvider.cs
- CapabilitiesState.cs
- IntegerFacetDescriptionElement.cs
- UnsafeCollabNativeMethods.cs
- RtfToXamlReader.cs
- AtomServiceDocumentSerializer.cs
- CompressedStack.cs
- TextDocumentView.cs
- SqlCacheDependency.cs
- RectIndependentAnimationStorage.cs
- PrimitiveSchema.cs
- ReflectEventDescriptor.cs
- RoleManagerEventArgs.cs
- ControlSerializer.cs
- PropertyOverridesTypeEditor.cs
- ListViewGroup.cs
- TextServicesCompartmentContext.cs
- Roles.cs
- ErrorFormatterPage.cs
- SqlDataSourceEnumerator.cs
- TextDecoration.cs
- MatrixTransform3D.cs
- Popup.cs
- RecordManager.cs
- StringDictionaryEditor.cs
- WebBrowserDocumentCompletedEventHandler.cs
- PeerChannelListener.cs
- HtmlTextViewAdapter.cs
- ImageUrlEditor.cs
- _UncName.cs
- ItemType.cs
- HostingEnvironment.cs
- ContextMenuStrip.cs
- BaseDataBoundControlDesigner.cs
- AppSettingsReader.cs
- DataGridViewCellCollection.cs
- SafeLibraryHandle.cs
- ProviderCollection.cs
- SizeIndependentAnimationStorage.cs
- basevalidator.cs
- CodeDomLocalizationProvider.cs
- IPAddress.cs
- AutoGeneratedFieldProperties.cs
- CodeDefaultValueExpression.cs
- RequestQueryParser.cs
- String.cs
- BoundField.cs
- StylusSystemGestureEventArgs.cs
- WebRequestModulesSection.cs
- WorkflowEventArgs.cs
- DataTableCollection.cs
- ControlTemplate.cs
- JavaScriptSerializer.cs
- ScriptControlDescriptor.cs
- InputLangChangeEvent.cs
- SQLBinary.cs
- FixUpCollection.cs
- MemberJoinTreeNode.cs