Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Runtime / CompilerServices / DecimalConstantAttribute.cs / 1 / DecimalConstantAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // Note: If you add a new ctor overloads you need to update ParameterInfo.RawDefaultValue namespace System.Runtime.CompilerServices { [Serializable, AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class DecimalConstantAttribute : Attribute { [CLSCompliant(false)] public DecimalConstantAttribute( byte scale, byte sign, uint hi, uint mid, uint low ) { dec = new System.Decimal((int) low, (int)mid, (int)hi, (sign != 0), scale); } public DecimalConstantAttribute( byte scale, byte sign, int hi, int mid, int low ) { dec = new System.Decimal(low, mid, hi, (sign != 0), scale); } public System.Decimal Value { get { return dec; } } private System.Decimal dec; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // Note: If you add a new ctor overloads you need to update ParameterInfo.RawDefaultValue namespace System.Runtime.CompilerServices { [Serializable, AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class DecimalConstantAttribute : Attribute { [CLSCompliant(false)] public DecimalConstantAttribute( byte scale, byte sign, uint hi, uint mid, uint low ) { dec = new System.Decimal((int) low, (int)mid, (int)hi, (sign != 0), scale); } public DecimalConstantAttribute( byte scale, byte sign, int hi, int mid, int low ) { dec = new System.Decimal(low, mid, hi, (sign != 0), scale); } public System.Decimal Value { get { return dec; } } private System.Decimal dec; } } // 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
- NameTable.cs
- Int32.cs
- BaseDataBoundControlDesigner.cs
- LogicalMethodInfo.cs
- FormParameter.cs
- HybridCollection.cs
- IERequestCache.cs
- CodeTypeReference.cs
- GlyphCollection.cs
- LinearQuaternionKeyFrame.cs
- SqlDataSource.cs
- TdsParser.cs
- DataGridItemEventArgs.cs
- MobileControlsSectionHandler.cs
- StatusBarItemAutomationPeer.cs
- PopOutPanel.cs
- X509IssuerSerialKeyIdentifierClause.cs
- CollectionBuilder.cs
- MenuItemStyleCollection.cs
- Metafile.cs
- DynamicDataResources.Designer.cs
- NextPreviousPagerField.cs
- RoleManagerSection.cs
- RootBrowserWindow.cs
- SharedMemory.cs
- AncillaryOps.cs
- PageWrapper.cs
- ProxyWebPartManager.cs
- TextBox.cs
- MessageQueue.cs
- ProviderMetadata.cs
- TcpProcessProtocolHandler.cs
- RefreshPropertiesAttribute.cs
- BrowserTree.cs
- LoginName.cs
- RIPEMD160.cs
- GeometryCombineModeValidation.cs
- SchemaCollectionPreprocessor.cs
- SecondaryIndexDefinition.cs
- InfiniteTimeSpanConverter.cs
- ExceptionUtility.cs
- FileSystemInfo.cs
- StoragePropertyMapping.cs
- LabelEditEvent.cs
- DSASignatureFormatter.cs
- GiveFeedbackEventArgs.cs
- AddInServer.cs
- WindowsProgressbar.cs
- TextTreeTextElementNode.cs
- StrokeFIndices.cs
- XmlAnyElementAttribute.cs
- PresentationAppDomainManager.cs
- KeyboardNavigation.cs
- TemplateModeChangedEventArgs.cs
- VSDExceptions.cs
- bidPrivateBase.cs
- StringFormat.cs
- VoiceChangeEventArgs.cs
- DesignerTextViewAdapter.cs
- FocusWithinProperty.cs
- UInt32.cs
- ObjectDataSourceDisposingEventArgs.cs
- Icon.cs
- MediaElementAutomationPeer.cs
- LeftCellWrapper.cs
- HttpListenerException.cs
- XPathExpr.cs
- DocumentPageHost.cs
- MediaScriptCommandRoutedEventArgs.cs
- AssemblyCacheEntry.cs
- TextBoxAutomationPeer.cs
- HttpRawResponse.cs
- HttpSessionStateWrapper.cs
- HeaderedItemsControl.cs
- ThreadSafeMessageFilterTable.cs
- DateTimeStorage.cs
- TypedReference.cs
- OrderPreservingPipeliningSpoolingTask.cs
- StackOverflowException.cs
- KeyValuePair.cs
- TransactionFlowOption.cs
- WorkflowApplicationIdleEventArgs.cs
- Dispatcher.cs
- XmlWrappingWriter.cs
- GeneratedContractType.cs
- UDPClient.cs
- TextFormatterHost.cs
- EllipseGeometry.cs
- AttachedAnnotationChangedEventArgs.cs
- InplaceBitmapMetadataWriter.cs
- DataBindingExpressionBuilder.cs
- RoleBoolean.cs
- listitem.cs
- Visual3D.cs
- HttpHandler.cs
- typedescriptorpermission.cs
- unsafeIndexingFilterStream.cs
- Confirm.cs
- MasterPageParser.cs
- MultipleViewPattern.cs