Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DrawingCollection.cs
- CodeDefaultValueExpression.cs
- GeometryValueSerializer.cs
- GlyphRun.cs
- UxThemeWrapper.cs
- ResetableIterator.cs
- PKCS1MaskGenerationMethod.cs
- DesignTimeParseData.cs
- TemplateControlParser.cs
- UnsafeNetInfoNativeMethods.cs
- ConfigurationException.cs
- DeadCharTextComposition.cs
- SpellerStatusTable.cs
- TagPrefixAttribute.cs
- WorkflowInstanceContextProvider.cs
- UserValidatedEventArgs.cs
- CompensationParticipant.cs
- ScrollBar.cs
- InstancePersistenceEvent.cs
- ValidationErrorCollection.cs
- SizeConverter.cs
- WorkflowRuntimeServiceElement.cs
- SubclassTypeValidator.cs
- DataException.cs
- EastAsianLunisolarCalendar.cs
- EmptyEnumerable.cs
- Buffer.cs
- FlowLayoutSettings.cs
- ConfigurationErrorsException.cs
- TextChange.cs
- HandlerMappingMemo.cs
- followingsibling.cs
- SHA256Managed.cs
- SessionState.cs
- ToolBar.cs
- WebPartPersonalization.cs
- WebControlsSection.cs
- TypeKeyValue.cs
- Validator.cs
- XmlSchemaDatatype.cs
- DesignerSerializerAttribute.cs
- Triangle.cs
- ControlValuePropertyAttribute.cs
- KeyConverter.cs
- XPathDescendantIterator.cs
- DataSourceCacheDurationConverter.cs
- Preprocessor.cs
- ContentPlaceHolderDesigner.cs
- SevenBitStream.cs
- PngBitmapEncoder.cs
- ListViewInsertionMark.cs
- HandlerBase.cs
- Int32CollectionConverter.cs
- Int32AnimationUsingKeyFrames.cs
- ExtendedProperty.cs
- Query.cs
- CreateUserWizard.cs
- SafeTimerHandle.cs
- BaseParser.cs
- keycontainerpermission.cs
- JavascriptXmlWriterWrapper.cs
- ResXResourceWriter.cs
- UnsafeNetInfoNativeMethods.cs
- WebAdminConfigurationHelper.cs
- UrlParameterReader.cs
- ObjectSpanRewriter.cs
- CallTemplateAction.cs
- RewritingPass.cs
- TimeoutValidationAttribute.cs
- HttpProfileBase.cs
- MouseButtonEventArgs.cs
- InProcStateClientManager.cs
- OleDbError.cs
- DocumentApplicationJournalEntry.cs
- MobilePage.cs
- DesignTimeParseData.cs
- TabControlCancelEvent.cs
- LayoutExceptionEventArgs.cs
- ActiveDocumentEvent.cs
- UInt64.cs
- RuleRef.cs
- WebEventTraceProvider.cs
- DefaultObjectMappingItemCollection.cs
- ReadOnlyNameValueCollection.cs
- SqlVersion.cs
- BitFlagsGenerator.cs
- ProcessManager.cs
- _ListenerResponseStream.cs
- MulticastDelegate.cs
- columnmapfactory.cs
- ViewValidator.cs
- HierarchicalDataSourceDesigner.cs
- AddInServer.cs
- ExpiredSecurityTokenException.cs
- EventRoute.cs
- PolyBezierSegmentFigureLogic.cs
- ModulesEntry.cs
- TimelineGroup.cs
- COM2EnumConverter.cs
- XmlResolver.cs