Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / CurrencyWrapper.cs / 1305376 / 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
- HebrewCalendar.cs
- sqlpipe.cs
- StatusBarDrawItemEvent.cs
- AssociationTypeEmitter.cs
- ServiceManager.cs
- PaintValueEventArgs.cs
- Script.cs
- DataGridItem.cs
- Annotation.cs
- OleDbDataReader.cs
- InfoCardListRequest.cs
- peersecurityelement.cs
- ServiceHostingEnvironmentSection.cs
- ConnectionOrientedTransportBindingElement.cs
- BindValidator.cs
- XmlDataProvider.cs
- NativeMethods.cs
- ObjectDataSourceSelectingEventArgs.cs
- CodeTypeConstructor.cs
- AmbientLight.cs
- Underline.cs
- ProfessionalColorTable.cs
- SqlConnectionPoolGroupProviderInfo.cs
- _ConnectionGroup.cs
- CodeTryCatchFinallyStatement.cs
- ImageList.cs
- Buffer.cs
- CommandEventArgs.cs
- MessageHeaderDescriptionCollection.cs
- FixUpCollection.cs
- ObjectPersistData.cs
- TreeViewImageIndexConverter.cs
- ClientOptions.cs
- FrameworkElementFactory.cs
- CommandValueSerializer.cs
- SqlTypeSystemProvider.cs
- SqlInfoMessageEvent.cs
- FunctionNode.cs
- KnownIds.cs
- SecurityContextTokenCache.cs
- Triplet.cs
- SmtpLoginAuthenticationModule.cs
- DesignerSelectionListAdapter.cs
- ApplicationServicesHostFactory.cs
- XhtmlConformanceSection.cs
- PageHandlerFactory.cs
- DeferredTextReference.cs
- AmbiguousMatchException.cs
- MouseEvent.cs
- DisableDpiAwarenessAttribute.cs
- DataGridTextBox.cs
- ColorEditor.cs
- MetadataUtilsSmi.cs
- Rect3DValueSerializer.cs
- RankException.cs
- HttpPostedFile.cs
- ColorAnimation.cs
- ProcessHostServerConfig.cs
- URIFormatException.cs
- URL.cs
- Timeline.cs
- FloatUtil.cs
- DataGridViewComboBoxEditingControl.cs
- Delegate.cs
- WebSysDisplayNameAttribute.cs
- Parameter.cs
- DocumentPropertiesDialog.cs
- WebPartEditorApplyVerb.cs
- LinqDataSourceSelectEventArgs.cs
- PkcsMisc.cs
- sqlinternaltransaction.cs
- QueueProcessor.cs
- CachedCompositeFamily.cs
- XmlReaderDelegator.cs
- SqlUtils.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ParsedAttributeCollection.cs
- SQLSingle.cs
- OrderingInfo.cs
- HttpTransportSecurity.cs
- WebBrowserNavigatedEventHandler.cs
- IOException.cs
- PropertyBuilder.cs
- ReachPageContentCollectionSerializerAsync.cs
- WebPartZoneCollection.cs
- _KerberosClient.cs
- MatrixTransform.cs
- InstancePersistenceCommand.cs
- CellPartitioner.cs
- mediapermission.cs
- CurrentTimeZone.cs
- StorageModelBuildProvider.cs
- smtpconnection.cs
- BinHexDecoder.cs
- SizeChangedEventArgs.cs
- CheckBox.cs
- XAMLParseException.cs
- ConfigXmlComment.cs
- XmlCountingReader.cs
- NameValueConfigurationElement.cs