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
- LayoutInformation.cs
- WindowsScrollBar.cs
- Substitution.cs
- WebRequestModulesSection.cs
- BamlWriter.cs
- MainMenu.cs
- DisplayNameAttribute.cs
- XmlElementAttributes.cs
- ServiceBehaviorElementCollection.cs
- MessageTraceRecord.cs
- ToolboxItem.cs
- PageThemeParser.cs
- FieldToken.cs
- TimeoutException.cs
- BindingGroup.cs
- TypeDelegator.cs
- InputLanguageCollection.cs
- EmptyTextWriter.cs
- datacache.cs
- UntrustedRecipientException.cs
- NonceToken.cs
- CompilationUtil.cs
- NameScopePropertyAttribute.cs
- NamedPipeTransportSecurity.cs
- BindStream.cs
- CustomErrorsSection.cs
- ArgIterator.cs
- ResourceCategoryAttribute.cs
- TagMapCollection.cs
- LinkConverter.cs
- HttpDigestClientElement.cs
- HtmlPanelAdapter.cs
- ComponentCommands.cs
- ListViewDataItem.cs
- RoutedPropertyChangedEventArgs.cs
- BaseAddressPrefixFilterElement.cs
- TraceUtility.cs
- VisualStyleRenderer.cs
- basenumberconverter.cs
- _TimerThread.cs
- DtrList.cs
- PlanCompiler.cs
- OleCmdHelper.cs
- IndexedEnumerable.cs
- ControlBuilder.cs
- SchemaElementDecl.cs
- XmlCustomFormatter.cs
- ChannelFactoryBase.cs
- PerfProviderCollection.cs
- HashRepartitionStream.cs
- SrgsElementFactory.cs
- Pointer.cs
- DesignerObject.cs
- FileDialog_Vista.cs
- ParameterCollection.cs
- ItemCollection.cs
- ToolStripContextMenu.cs
- FeatureSupport.cs
- AnimationException.cs
- CaretElement.cs
- SqlInternalConnectionTds.cs
- ColumnClickEvent.cs
- HttpHandlerActionCollection.cs
- _FtpDataStream.cs
- XmlUtil.cs
- X509Certificate2.cs
- ModelItemCollection.cs
- XmlDictionaryReader.cs
- MessageBuilder.cs
- TransformValueSerializer.cs
- ThaiBuddhistCalendar.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- SqlTransaction.cs
- TabletCollection.cs
- Hyperlink.cs
- PeerCollaborationPermission.cs
- List.cs
- InvokeMethodActivity.cs
- AbstractExpressions.cs
- SharedConnectionInfo.cs
- FileIOPermission.cs
- TextElementCollection.cs
- WindowsListViewSubItem.cs
- EncryptedType.cs
- LogRestartAreaEnumerator.cs
- NullableIntMinMaxAggregationOperator.cs
- BinaryConverter.cs
- InstanceCreationEditor.cs
- SchemaNamespaceManager.cs
- SelectionChangedEventArgs.cs
- StateInitializationDesigner.cs
- bidPrivateBase.cs
- CodeDomDesignerLoader.cs
- ParseChildrenAsPropertiesAttribute.cs
- DefaultCompensation.cs
- ModuleBuilderData.cs
- TaskHelper.cs
- GPRECTF.cs
- TextRunTypographyProperties.cs
- WindowsListViewSubItem.cs