Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / DecimalConstantAttribute.cs / 1305376 / 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
- Property.cs
- DataGridViewRowHeaderCell.cs
- ComplexTypeEmitter.cs
- PathNode.cs
- ReaderWriterLockWrapper.cs
- ColumnReorderedEventArgs.cs
- Span.cs
- NavigationCommands.cs
- ConfigXmlAttribute.cs
- MessagePropertyFilter.cs
- XslCompiledTransform.cs
- ReversePositionQuery.cs
- VerificationAttribute.cs
- FormatControl.cs
- RadioButtonPopupAdapter.cs
- CaseInsensitiveHashCodeProvider.cs
- RuleCache.cs
- ScriptRegistrationManager.cs
- StateItem.cs
- ScriptHandlerFactory.cs
- TitleStyle.cs
- StorageEndPropertyMapping.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ExternalException.cs
- Link.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- XmlSchemaImport.cs
- ListMarkerLine.cs
- BrowsableAttribute.cs
- CollectionConverter.cs
- HwndHost.cs
- ControlSerializer.cs
- DataReaderContainer.cs
- WorkflowRuntime.cs
- DataServiceResponse.cs
- EventMappingSettingsCollection.cs
- SQLRoleProvider.cs
- OutputCacheProfileCollection.cs
- SqlReferenceCollection.cs
- ResponseBodyWriter.cs
- ListViewItemSelectionChangedEvent.cs
- FileEnumerator.cs
- ProgressiveCrcCalculatingStream.cs
- FixUp.cs
- FormsIdentity.cs
- Point3DCollection.cs
- ConnectorEditor.cs
- ProcessHostMapPath.cs
- ComboBox.cs
- VisualTreeHelper.cs
- DispatcherExceptionEventArgs.cs
- HMACSHA1.cs
- SqlDataSourceEnumerator.cs
- ResourceReferenceExpression.cs
- MailMessage.cs
- UnsafeNativeMethods.cs
- HttpStreamMessageEncoderFactory.cs
- CompilerInfo.cs
- VisualStates.cs
- BamlMapTable.cs
- SqlWebEventProvider.cs
- AdCreatedEventArgs.cs
- KeyValueConfigurationElement.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- VerificationAttribute.cs
- WebPartVerbCollection.cs
- EtwTrace.cs
- ScriptMethodAttribute.cs
- SimpleNameService.cs
- StateRuntime.cs
- EventWaitHandle.cs
- TransformPatternIdentifiers.cs
- RadioButton.cs
- ErrorStyle.cs
- InkPresenter.cs
- Trace.cs
- VirtualizedItemPattern.cs
- EndpointAddressAugust2004.cs
- GeneratedCodeAttribute.cs
- SystemParameters.cs
- WinFormsComponentEditor.cs
- FixedStringLookup.cs
- ProfileInfo.cs
- WorkflowMarkupElementEventArgs.cs
- TransactionInformation.cs
- AuthorizationRule.cs
- CodeTypeReferenceExpression.cs
- Matrix.cs
- UpdatePanelTriggerCollection.cs
- ParserContext.cs
- BuildProviderCollection.cs
- LogWriteRestartAreaAsyncResult.cs
- SQLByteStorage.cs
- _Connection.cs
- _Connection.cs
- TrustLevel.cs
- ObjectKeyFrameCollection.cs
- WindowsGraphics2.cs
- ImagingCache.cs
- SiteOfOriginPart.cs