Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlEncodedRawTextWriter.cs
- SwitchLevelAttribute.cs
- AncillaryOps.cs
- CalendarDayButton.cs
- ParagraphResult.cs
- FixedSchema.cs
- HttpListenerException.cs
- EllipticalNodeOperations.cs
- XmlWrappingReader.cs
- DocumentPage.cs
- BuildDependencySet.cs
- CookieProtection.cs
- FileSystemInfo.cs
- WebPartConnectionsCloseVerb.cs
- AutoResetEvent.cs
- QuaternionAnimation.cs
- SpeakInfo.cs
- InternalDuplexBindingElement.cs
- OciLobLocator.cs
- PrimitiveList.cs
- TextLine.cs
- MimeFormatExtensions.cs
- DiscoveryClientChannelBase.cs
- ObjectTag.cs
- TypeUtils.cs
- DataGridViewRowEventArgs.cs
- XsdDateTime.cs
- CodeTypeReferenceCollection.cs
- BrowserDefinition.cs
- ProjectionAnalyzer.cs
- Stroke.cs
- RsaSecurityTokenParameters.cs
- OutOfMemoryException.cs
- TransformGroup.cs
- MutexSecurity.cs
- DataGridRow.cs
- WebConfigurationHost.cs
- CodeDirectiveCollection.cs
- GridToolTip.cs
- Visitors.cs
- SymbolMethod.cs
- WebPartEventArgs.cs
- FileDialog.cs
- ScriptRegistrationManager.cs
- XPathSelfQuery.cs
- DisplayInformation.cs
- ImageBrush.cs
- RecognizedWordUnit.cs
- GradientBrush.cs
- ChunkedMemoryStream.cs
- PaginationProgressEventArgs.cs
- SecurityManager.cs
- WindowsFont.cs
- FigureHelper.cs
- Math.cs
- DynamicControl.cs
- CompilationSection.cs
- ListBase.cs
- IntranetCredentialPolicy.cs
- SqlProvider.cs
- AdPostCacheSubstitution.cs
- UnconditionalPolicy.cs
- DataGridViewCellParsingEventArgs.cs
- SmtpFailedRecipientsException.cs
- MetadataPropertyAttribute.cs
- MessageQueueEnumerator.cs
- OracleEncoding.cs
- TripleDES.cs
- FileDialogCustomPlace.cs
- RemotingServices.cs
- MsmqIntegrationValidationBehavior.cs
- TextSelection.cs
- NativeMethods.cs
- HtmlInputRadioButton.cs
- SafeFileHandle.cs
- Rect3D.cs
- TreeSet.cs
- ZoneIdentityPermission.cs
- MediaElementAutomationPeer.cs
- NavigateUrlConverter.cs
- ToggleButton.cs
- BezierSegment.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XamlInt32CollectionSerializer.cs
- WebPartConnectionsCancelVerb.cs
- SmiEventSink_DeferedProcessing.cs
- RtfToken.cs
- StackSpiller.Bindings.cs
- ClassValidator.cs
- NameValueFileSectionHandler.cs
- CopyCodeAction.cs
- AdvancedBindingPropertyDescriptor.cs
- DataDocumentXPathNavigator.cs
- DbConnectionFactory.cs
- ReliabilityContractAttribute.cs
- ExpandCollapseProviderWrapper.cs
- safelinkcollection.cs
- ByteStreamGeometryContext.cs
- AttributeEmitter.cs
- ToolStripRenderEventArgs.cs