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
- ItemCollection.cs
- InstanceLockQueryResult.cs
- InstanceNotFoundException.cs
- TransformerConfigurationWizardBase.cs
- ClientSettingsStore.cs
- PathFigureCollection.cs
- KeyGestureConverter.cs
- RegistryConfigurationProvider.cs
- XmlException.cs
- WsdlInspector.cs
- Container.cs
- SymbolPair.cs
- StorageMappingItemCollection.cs
- FormViewUpdateEventArgs.cs
- CatalogPartChrome.cs
- CqlLexer.cs
- JsonDataContract.cs
- DbExpressionBuilder.cs
- SapiRecognizer.cs
- SqlBuffer.cs
- FixedDocument.cs
- WebErrorHandler.cs
- AsymmetricKeyExchangeFormatter.cs
- ObjectToIdCache.cs
- _CacheStreams.cs
- MasterPageCodeDomTreeGenerator.cs
- ColumnHeader.cs
- UrlMapping.cs
- MimeBasePart.cs
- AsymmetricSignatureDeformatter.cs
- BitmapEffectInputData.cs
- DeclaredTypeElementCollection.cs
- HandleCollector.cs
- SuppressMergeCheckAttribute.cs
- PeerName.cs
- ActivityStatusChangeEventArgs.cs
- StartFileNameEditor.cs
- EvidenceBase.cs
- srgsitem.cs
- CultureInfo.cs
- FormViewInsertEventArgs.cs
- MimeMapping.cs
- HtmlTitle.cs
- DiagnosticsElement.cs
- ReflectTypeDescriptionProvider.cs
- OdbcEnvironmentHandle.cs
- NamespaceQuery.cs
- reliableinputsessionchannel.cs
- DeferredReference.cs
- CodeSubDirectoriesCollection.cs
- AsyncPostBackErrorEventArgs.cs
- ListManagerBindingsCollection.cs
- UpdateTracker.cs
- UnsafeNativeMethods.cs
- _NetworkingPerfCounters.cs
- InputLanguageManager.cs
- MemberCollection.cs
- XmlAttributeOverrides.cs
- WindowsSpinner.cs
- Literal.cs
- ACL.cs
- Maps.cs
- CodeTypeMemberCollection.cs
- ListViewSortEventArgs.cs
- CommandHelpers.cs
- TextCollapsingProperties.cs
- ListMarkerSourceInfo.cs
- ControlIdConverter.cs
- CharAnimationBase.cs
- AppDomainShutdownMonitor.cs
- TabControl.cs
- DataGridViewCellLinkedList.cs
- CloudCollection.cs
- CssStyleCollection.cs
- XmlHelper.cs
- WmlTextViewAdapter.cs
- DataGridColumnHeaderCollection.cs
- Dispatcher.cs
- FormViewCommandEventArgs.cs
- GridViewRowEventArgs.cs
- ResourceCodeDomSerializer.cs
- SimpleBitVector32.cs
- CacheEntry.cs
- ChildrenQuery.cs
- RangeBase.cs
- shaperfactory.cs
- OdbcFactory.cs
- RelOps.cs
- MultiPropertyDescriptorGridEntry.cs
- Vector3DAnimationUsingKeyFrames.cs
- TimeSpanValidatorAttribute.cs
- LinkLabelLinkClickedEvent.cs
- DeclaredTypeElementCollection.cs
- ListViewItemMouseHoverEvent.cs
- GridViewCommandEventArgs.cs
- MultipartIdentifier.cs
- IndexedString.cs
- URLMembershipCondition.cs
- Propagator.cs
- TypeContext.cs