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
- WindowsToolbarAsMenu.cs
- OutOfMemoryException.cs
- Messages.cs
- DataGridViewTextBoxColumn.cs
- VectorValueSerializer.cs
- RoutedEventConverter.cs
- ColumnCollection.cs
- BypassElement.cs
- FocusWithinProperty.cs
- HtmlInputReset.cs
- FocusWithinProperty.cs
- ConfigsHelper.cs
- contentDescriptor.cs
- CreateParams.cs
- RTTrackingProfile.cs
- MimeMapping.cs
- DataServiceProviderMethods.cs
- CodeStatementCollection.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DoubleKeyFrameCollection.cs
- PolicyLevel.cs
- SHA512Managed.cs
- FlowchartDesigner.xaml.cs
- ISO2022Encoding.cs
- SerializationSectionGroup.cs
- URLIdentityPermission.cs
- LingerOption.cs
- ErrorTableItemStyle.cs
- WebControlParameterProxy.cs
- SurrogateEncoder.cs
- ObjectIDGenerator.cs
- FastEncoderWindow.cs
- PrimitiveXmlSerializers.cs
- unsafenativemethodsother.cs
- LicenseProviderAttribute.cs
- ToolStripItemClickedEventArgs.cs
- RightsManagementPermission.cs
- QueryableDataSourceEditData.cs
- ListViewItemMouseHoverEvent.cs
- TypeUsageBuilder.cs
- TextCompositionEventArgs.cs
- OpenCollectionAsyncResult.cs
- ContentElementCollection.cs
- AbsoluteQuery.cs
- _ListenerResponseStream.cs
- TypeSystemHelpers.cs
- SqlParameter.cs
- StreamGeometry.cs
- PlanCompilerUtil.cs
- TextEffectCollection.cs
- Expressions.cs
- TextMarkerSource.cs
- DomainLiteralReader.cs
- FormsAuthenticationEventArgs.cs
- CaseInsensitiveOrdinalStringComparer.cs
- XmlSchemaComplexContentRestriction.cs
- BaseParagraph.cs
- VectorConverter.cs
- Columns.cs
- TypeConverterHelper.cs
- NativeMethodsOther.cs
- QilExpression.cs
- UndirectedGraph.cs
- UInt32Converter.cs
- ServicesUtilities.cs
- NavigationExpr.cs
- DataGridViewAccessibleObject.cs
- XsltCompileContext.cs
- VectorConverter.cs
- CompositeControl.cs
- AttachedPropertyInfo.cs
- TdsParserSessionPool.cs
- CharEntityEncoderFallback.cs
- CuspData.cs
- GenericAuthenticationEventArgs.cs
- TemplateBindingExpressionConverter.cs
- RegexStringValidatorAttribute.cs
- DecimalStorage.cs
- WebPartCloseVerb.cs
- odbcmetadatafactory.cs
- ElementNotAvailableException.cs
- ArgIterator.cs
- XmlUtil.cs
- XmlException.cs
- _DomainName.cs
- PrimitiveDataContract.cs
- XmlQueryType.cs
- TabControlDesigner.cs
- InstancePersistenceCommandException.cs
- EdmScalarPropertyAttribute.cs
- GenericTypeParameterBuilder.cs
- ParentUndoUnit.cs
- TypeDelegator.cs
- EntityTypeEmitter.cs
- LicenseException.cs
- SqlDataSource.cs
- FunctionParameter.cs
- XmlDataLoader.cs
- BamlResourceContent.cs
- PageVisual.cs