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
- StyleXamlTreeBuilder.cs
- ArrayList.cs
- MappingItemCollection.cs
- ReachUIElementCollectionSerializerAsync.cs
- RequestedSignatureDialog.cs
- DeclaredTypeValidatorAttribute.cs
- Tool.cs
- SafeEventHandle.cs
- BaseCodeDomTreeGenerator.cs
- DataBoundControl.cs
- UnknownWrapper.cs
- SpeechSynthesizer.cs
- RootBrowserWindowAutomationPeer.cs
- SequentialActivityDesigner.cs
- DataSourceView.cs
- GreaterThan.cs
- PermissionSetEnumerator.cs
- RegexWorker.cs
- ScriptComponentDescriptor.cs
- SchemaMapping.cs
- BinaryObjectWriter.cs
- ResourceAttributes.cs
- SqlColumnizer.cs
- EnumValAlphaComparer.cs
- XmlSchemaExporter.cs
- NamespaceDisplayAutomationPeer.cs
- TemplateColumn.cs
- InvokeMethodActivityDesigner.cs
- PerformanceCounterManager.cs
- XmlWrappingWriter.cs
- TextContainer.cs
- XmlSerializer.cs
- SqlCacheDependencyDatabase.cs
- Converter.cs
- CssTextWriter.cs
- HtmlLink.cs
- WebPartDescription.cs
- AssemblyBuilder.cs
- ToolbarAUtomationPeer.cs
- RegexReplacement.cs
- SqlDeflator.cs
- InstanceCreationEditor.cs
- Win32Native.cs
- RegexCapture.cs
- LinqDataSourceDisposeEventArgs.cs
- StateItem.cs
- CngUIPolicy.cs
- CustomActivityDesigner.cs
- WindowsScrollBar.cs
- TransactionScopeDesigner.cs
- Opcode.cs
- GridPattern.cs
- Cursors.cs
- Interlocked.cs
- ImageListUtils.cs
- Brush.cs
- FastEncoderWindow.cs
- PageCanvasSize.cs
- InheritanceRules.cs
- Bezier.cs
- ToolStripSplitButton.cs
- ModelUIElement3D.cs
- NumericUpDown.cs
- SmtpSection.cs
- QilFunction.cs
- DataKeyPropertyAttribute.cs
- RuntimeHandles.cs
- EventLogTraceListener.cs
- CommonProperties.cs
- ChangeConflicts.cs
- ExpandCollapsePattern.cs
- codemethodreferenceexpression.cs
- ExpressionsCollectionEditor.cs
- LabelDesigner.cs
- GrammarBuilderPhrase.cs
- XamlToRtfWriter.cs
- Emitter.cs
- DispatcherProcessingDisabled.cs
- SchemaComplexType.cs
- InstanceNotReadyException.cs
- BooleanStorage.cs
- GcSettings.cs
- GroupItem.cs
- NumberAction.cs
- MobileControl.cs
- AdRotator.cs
- HtmlEncodedRawTextWriter.cs
- SemanticBasicElement.cs
- SafeRightsManagementPubHandle.cs
- ServiceDescriptionData.cs
- DataContractSerializer.cs
- NamespaceInfo.cs
- PenThreadPool.cs
- MemoryMappedFileSecurity.cs
- ColumnResult.cs
- DataControlFieldCell.cs
- EntityDataSourceReferenceGroup.cs
- M3DUtil.cs
- XmlSchemaElement.cs
- HtmlInputButton.cs