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
- DependentList.cs
- ConnectionManagementElementCollection.cs
- CollectionExtensions.cs
- CssTextWriter.cs
- NativeMethodsOther.cs
- TypeConverterValueSerializer.cs
- NeutralResourcesLanguageAttribute.cs
- RealizedColumnsBlock.cs
- MutexSecurity.cs
- LayoutTable.cs
- ByteAnimation.cs
- Int64Converter.cs
- SystemIcons.cs
- ContextMenuService.cs
- EncryptedReference.cs
- NotifyCollectionChangedEventArgs.cs
- DesignerSerializationOptionsAttribute.cs
- PtsCache.cs
- DoubleLinkListEnumerator.cs
- ServiceNotStartedException.cs
- HttpListenerRequestUriBuilder.cs
- LoginDesignerUtil.cs
- Transform3DGroup.cs
- CompositeActivityTypeDescriptorProvider.cs
- TagNameToTypeMapper.cs
- DynamicResourceExtensionConverter.cs
- CodeCommentStatement.cs
- ProvideValueServiceProvider.cs
- categoryentry.cs
- AQNBuilder.cs
- CompatibleComparer.cs
- ConfigUtil.cs
- StoreItemCollection.Loader.cs
- SafeSecurityHelper.cs
- DispatcherHookEventArgs.cs
- FileDetails.cs
- IteratorFilter.cs
- EditorBrowsableAttribute.cs
- XPathChildIterator.cs
- IResourceProvider.cs
- Attributes.cs
- XamlContextStack.cs
- IndentedTextWriter.cs
- StringStorage.cs
- WizardSideBarListControlItemEventArgs.cs
- LocalIdKeyIdentifierClause.cs
- loginstatus.cs
- webbrowsersite.cs
- IndependentAnimationStorage.cs
- ConfigPathUtility.cs
- StreamAsIStream.cs
- ColumnWidthChangingEvent.cs
- GridViewActionList.cs
- ChtmlMobileTextWriter.cs
- BinHexDecoder.cs
- DataExchangeServiceBinder.cs
- ByteFacetDescriptionElement.cs
- TrackingProfile.cs
- AsyncOperation.cs
- ItemCollection.cs
- DataContext.cs
- SeparatorAutomationPeer.cs
- Listbox.cs
- RowParagraph.cs
- BuildManagerHost.cs
- HostingEnvironmentException.cs
- SoapReflector.cs
- CmsInterop.cs
- SettingsPropertyValueCollection.cs
- RootProfilePropertySettingsCollection.cs
- FaultDescription.cs
- TextEditorSpelling.cs
- DashStyle.cs
- Compilation.cs
- EpmContentDeSerializerBase.cs
- XmlSchemaAll.cs
- OleDbPropertySetGuid.cs
- StrongNameIdentityPermission.cs
- CompoundFileIOPermission.cs
- ConfigurationPermission.cs
- BlockUIContainer.cs
- Activation.cs
- RequestCachingSection.cs
- ProfileSettingsCollection.cs
- StorageConditionPropertyMapping.cs
- TableMethodGenerator.cs
- datacache.cs
- PassportAuthenticationEventArgs.cs
- Container.cs
- ValidatingReaderNodeData.cs
- ObjectListComponentEditor.cs
- ActivityCollectionMarkupSerializer.cs
- RequestContext.cs
- bidPrivateBase.cs
- RawStylusInput.cs
- Blend.cs
- XmlObjectSerializerReadContext.cs
- TemplateField.cs
- BitmapEffectDrawingContextWalker.cs
- ContainerParagraph.cs