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
- DataBindingCollection.cs
- DesignerOptions.cs
- StrokeCollectionDefaultValueFactory.cs
- HashMembershipCondition.cs
- WindowsTokenRoleProvider.cs
- WebConfigurationHostFileChange.cs
- RouteItem.cs
- tibetanshape.cs
- BitmapPalette.cs
- GuidelineCollection.cs
- BuildProvider.cs
- TreeNodeCollection.cs
- TextSchema.cs
- COM2ComponentEditor.cs
- RightsManagementUser.cs
- NCryptSafeHandles.cs
- XmlSchemaChoice.cs
- FixUpCollection.cs
- DataGridViewTextBoxCell.cs
- CaseKeyBox.xaml.cs
- DiagnosticsConfigurationHandler.cs
- InternalConfigEventArgs.cs
- DbMetaDataFactory.cs
- CopyCodeAction.cs
- ComboBoxDesigner.cs
- BlurBitmapEffect.cs
- XMLDiffLoader.cs
- Crypto.cs
- ReflectPropertyDescriptor.cs
- _BasicClient.cs
- MouseActionValueSerializer.cs
- ObjectItemCollection.cs
- DbModificationClause.cs
- ParameterCollection.cs
- Item.cs
- ForeignKeyConstraint.cs
- TcpTransportSecurityElement.cs
- Misc.cs
- MLangCodePageEncoding.cs
- elementinformation.cs
- CommandManager.cs
- DropTarget.cs
- TemplatePagerField.cs
- UDPClient.cs
- SafeFindHandle.cs
- GroupAggregateExpr.cs
- SimpleTextLine.cs
- httpstaticobjectscollection.cs
- RecognizedAudio.cs
- RenderData.cs
- XPathScanner.cs
- HtmlGenericControl.cs
- ListBoxAutomationPeer.cs
- JsonFormatWriterGenerator.cs
- XmlLangPropertyAttribute.cs
- ConnectionManagementElement.cs
- NamedPipeDuplicateContext.cs
- UnsafeNativeMethods.cs
- Profiler.cs
- ScriptResourceDefinition.cs
- ErrorItem.cs
- GridEntry.cs
- OpenFileDialog.cs
- IndexerNameAttribute.cs
- ListBindingHelper.cs
- PropertyRef.cs
- _LocalDataStore.cs
- FlagsAttribute.cs
- AnimationClock.cs
- InkCanvas.cs
- ExternalException.cs
- DataTransferEventArgs.cs
- CodeIterationStatement.cs
- TraceLevelHelper.cs
- StateDesigner.Helpers.cs
- EventEntry.cs
- ListViewItemMouseHoverEvent.cs
- OrderedDictionaryStateHelper.cs
- PhysicalAddress.cs
- SqlTypeSystemProvider.cs
- LayoutEngine.cs
- Control.cs
- ValidatingReaderNodeData.cs
- GenericNameHandler.cs
- AnimationStorage.cs
- BooleanExpr.cs
- JavaScriptSerializer.cs
- XmlSiteMapProvider.cs
- ScrollableControl.cs
- DetailsViewUpdatedEventArgs.cs
- BufferedGraphicsManager.cs
- DependencyPropertyAttribute.cs
- SingleKeyFrameCollection.cs
- FixedSOMSemanticBox.cs
- UIElementParagraph.cs
- ForceCopyBuildProvider.cs
- DataGridViewElement.cs
- SchemaTableColumn.cs
- MergeLocalizationDirectives.cs
- RtfToXamlReader.cs