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
- SimpleRecyclingCache.cs
- FixedHyperLink.cs
- EventLogPermissionEntryCollection.cs
- ExpressionPrefixAttribute.cs
- XmlSchemaCollection.cs
- DeviceSpecificChoice.cs
- ThreadInterruptedException.cs
- TextViewBase.cs
- CatalogPart.cs
- CookielessHelper.cs
- EditingScope.cs
- DefaultPropertyAttribute.cs
- TimeSpanOrInfiniteConverter.cs
- ProfileSettings.cs
- CanonicalFormWriter.cs
- ClientBuildManagerCallback.cs
- FillRuleValidation.cs
- RectangleHotSpot.cs
- Command.cs
- ValidationErrorCollection.cs
- IconConverter.cs
- CombinedTcpChannel.cs
- WorkflowPersistenceContext.cs
- InternalsVisibleToAttribute.cs
- CodeDomDecompiler.cs
- StringSorter.cs
- PlatformCulture.cs
- TypedReference.cs
- DataRowView.cs
- InvokePatternIdentifiers.cs
- Comparer.cs
- SqlComparer.cs
- LocatorGroup.cs
- Win32SafeHandles.cs
- UnsafeNativeMethods.cs
- Int32CollectionValueSerializer.cs
- RegexStringValidator.cs
- ReservationNotFoundException.cs
- BaseDataList.cs
- SqlFormatter.cs
- DocumentOrderComparer.cs
- CheckBoxStandardAdapter.cs
- SqlDataSourceQuery.cs
- ConfigXmlAttribute.cs
- LockRecoveryTask.cs
- SystemIPGlobalStatistics.cs
- SystemGatewayIPAddressInformation.cs
- ConversionContext.cs
- UIHelper.cs
- MenuItem.cs
- Lease.cs
- Int16Storage.cs
- HttpSysSettings.cs
- OrderedDictionary.cs
- SqlCommandSet.cs
- DefaultObjectMappingItemCollection.cs
- RelationshipDetailsRow.cs
- Typography.cs
- DataColumnPropertyDescriptor.cs
- ExceptionRoutedEventArgs.cs
- WindowsGraphics.cs
- PhonemeConverter.cs
- AttributeCollection.cs
- VersionedStreamOwner.cs
- XmlReaderSettings.cs
- PropertyDescriptorComparer.cs
- HyperLinkColumn.cs
- UrlPropertyAttribute.cs
- SafeEventHandle.cs
- DataSourceCache.cs
- Vector3DAnimationBase.cs
- SchemaConstraints.cs
- CommandDesigner.cs
- ErrorStyle.cs
- CreateRefExpr.cs
- Evidence.cs
- SkipQueryOptionExpression.cs
- DesignerDataSourceView.cs
- HandoffBehavior.cs
- Triangle.cs
- TcpConnectionPoolSettings.cs
- ColorMatrix.cs
- ProxyWebPart.cs
- ConfigurationManagerHelper.cs
- GeneralTransform3D.cs
- ImageIndexConverter.cs
- TraceInternal.cs
- Material.cs
- ToolStripItem.cs
- XhtmlBasicPageAdapter.cs
- Switch.cs
- NameValueCollection.cs
- Error.cs
- ClientRolePrincipal.cs
- CaseInsensitiveHashCodeProvider.cs
- QilName.cs
- InputScope.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TextContainer.cs
- IUnknownConstantAttribute.cs