Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LeafCellTreeNode.cs
- StylusOverProperty.cs
- NegotiationTokenAuthenticator.cs
- UpdatePanel.cs
- Globals.cs
- ClipboardProcessor.cs
- DataGridViewButtonCell.cs
- ComponentEditorForm.cs
- TextComposition.cs
- Overlapped.cs
- RelationalExpressions.cs
- StringCollection.cs
- Constants.cs
- DataGridCellAutomationPeer.cs
- ListViewTableRow.cs
- SrgsElementFactoryCompiler.cs
- TextCompositionManager.cs
- DataTableNewRowEvent.cs
- Vector3DAnimationBase.cs
- DefaultMemberAttribute.cs
- DataServiceConfiguration.cs
- XamlGridLengthSerializer.cs
- WindowsServiceElement.cs
- FixedSOMPageConstructor.cs
- ErrorWrapper.cs
- ResourceDictionaryCollection.cs
- RenderingEventArgs.cs
- CryptoHelper.cs
- BaseTemplateParser.cs
- HtmlTextArea.cs
- FontFamilyValueSerializer.cs
- SamlConstants.cs
- DuplexChannel.cs
- ToolboxComponentsCreatingEventArgs.cs
- ClientScriptItemCollection.cs
- TemplateLookupAction.cs
- ProfilePropertySettings.cs
- FontStyles.cs
- ArrangedElementCollection.cs
- WmpBitmapEncoder.cs
- SqlMultiplexer.cs
- FrameworkContentElement.cs
- IPEndPoint.cs
- SystemKeyConverter.cs
- FileClassifier.cs
- TreeNodeEventArgs.cs
- Dynamic.cs
- DataTemplateSelector.cs
- DateTimeValueSerializerContext.cs
- VirtualDirectoryMapping.cs
- StylusCaptureWithinProperty.cs
- FloaterParaClient.cs
- SRef.cs
- SymDocumentType.cs
- DataQuery.cs
- ErrorInfoXmlDocument.cs
- AttachInfo.cs
- ContentElement.cs
- BaseAsyncResult.cs
- AQNBuilder.cs
- ProviderCollection.cs
- ForeignKeyFactory.cs
- CompositionTarget.cs
- DirectionalLight.cs
- ServiceOperationParameter.cs
- OdbcParameter.cs
- SafeHandle.cs
- MimePart.cs
- UInt16Converter.cs
- WebPartDisplayModeEventArgs.cs
- TextBlockAutomationPeer.cs
- PrintControllerWithStatusDialog.cs
- SQLDouble.cs
- LoginUtil.cs
- DbConnectionClosed.cs
- sqlser.cs
- Axis.cs
- MethodCallConverter.cs
- ActivityStateRecord.cs
- DataGridViewRowPrePaintEventArgs.cs
- ContractsBCL.cs
- StringResourceManager.cs
- CqlLexerHelpers.cs
- Activator.cs
- DataGridPageChangedEventArgs.cs
- DataBinding.cs
- KnownTypesHelper.cs
- CompleteWizardStep.cs
- FieldBuilder.cs
- VersionedStream.cs
- MatrixConverter.cs
- PathSegment.cs
- OleDbPropertySetGuid.cs
- PartManifestEntry.cs
- DataSet.cs
- IgnoreFileBuildProvider.cs
- ConstantCheck.cs
- XmlAttribute.cs
- StructuralType.cs
- MatchingStyle.cs