Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WindowPatternIdentifiers.cs
- EventMappingSettings.cs
- XmlAttributeCache.cs
- ForceCopyBuildProvider.cs
- CellParagraph.cs
- ItemCheckedEvent.cs
- PageTheme.cs
- WebPartConnectionsDisconnectVerb.cs
- ListenerChannelContext.cs
- MenuItem.cs
- UntypedNullExpression.cs
- PlatformCulture.cs
- Geometry.cs
- BufferModeSettings.cs
- XmlSchemaAnnotation.cs
- SessionStateSection.cs
- RequestResizeEvent.cs
- EdmToObjectNamespaceMap.cs
- CodePropertyReferenceExpression.cs
- ValidationHelper.cs
- Pen.cs
- MatrixAnimationUsingPath.cs
- DataControlButton.cs
- HelpProvider.cs
- SequenceFullException.cs
- HorizontalAlignConverter.cs
- XmlElementList.cs
- StylusDownEventArgs.cs
- BrushValueSerializer.cs
- UpdateRecord.cs
- NotImplementedException.cs
- PipeStream.cs
- BufferedOutputStream.cs
- ChangeNode.cs
- SqlConnectionHelper.cs
- Double.cs
- DocumentProperties.cs
- ServiceControllerDesigner.cs
- WaitForChangedResult.cs
- SQLByteStorage.cs
- GradientSpreadMethodValidation.cs
- Imaging.cs
- ResourceAttributes.cs
- CacheChildrenQuery.cs
- PatternMatcher.cs
- LabelDesigner.cs
- XmlSchemaDatatype.cs
- TimeSpanSecondsConverter.cs
- storepermissionattribute.cs
- SqlWebEventProvider.cs
- UriExt.cs
- DivideByZeroException.cs
- EntitySqlQueryState.cs
- BatchParser.cs
- EntityViewGenerator.cs
- HttpConfigurationSystem.cs
- InlineUIContainer.cs
- ProgressPage.cs
- ApplicationSecurityInfo.cs
- ClientSponsor.cs
- SecUtil.cs
- ToolStripStatusLabel.cs
- RoutingService.cs
- ResponseStream.cs
- ResourceSetExpression.cs
- XmlBinaryWriterSession.cs
- DataGridHelper.cs
- SecurityTokenProviderContainer.cs
- ImportCatalogPart.cs
- NetDataContractSerializer.cs
- CompilationLock.cs
- PageContentCollection.cs
- ArgumentException.cs
- MULTI_QI.cs
- SchemaTypeEmitter.cs
- SqlMultiplexer.cs
- Effect.cs
- WizardPanel.cs
- ValidatorCollection.cs
- UrlUtility.cs
- RawStylusInput.cs
- FigureHelper.cs
- MdbDataFileEditor.cs
- JsonFormatReaderGenerator.cs
- ExtensibleClassFactory.cs
- Point3DCollection.cs
- ThreadAbortException.cs
- WindowInteropHelper.cs
- DataKeyCollection.cs
- SyndicationFeedFormatter.cs
- XamlWriter.cs
- WithParamAction.cs
- WindowVisualStateTracker.cs
- CodeEntryPointMethod.cs
- TextStore.cs
- RelationshipEndCollection.cs
- SystemDiagnosticsSection.cs
- ControlDesignerState.cs
- ContentPlaceHolder.cs
- DataRowCollection.cs