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
- MultipleViewProviderWrapper.cs
- DecimalConverter.cs
- DefaultMemberAttribute.cs
- XmlUtil.cs
- XmlAttributes.cs
- WebPartDescription.cs
- ZipFileInfoCollection.cs
- FontNameConverter.cs
- URLString.cs
- MultiView.cs
- BufferAllocator.cs
- TextViewSelectionProcessor.cs
- StrokeNodeEnumerator.cs
- SafeLocalMemHandle.cs
- ScriptControl.cs
- HtmlTitle.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- RequestCacheValidator.cs
- SecurityElement.cs
- RootDesignerSerializerAttribute.cs
- TargetInvocationException.cs
- PageAdapter.cs
- wgx_render.cs
- DataListItemCollection.cs
- ListBindingConverter.cs
- Cursor.cs
- SmtpAuthenticationManager.cs
- RequestCache.cs
- PenThreadPool.cs
- GlobalizationSection.cs
- Context.cs
- CounterSample.cs
- XamlSerializationHelper.cs
- HostedHttpRequestAsyncResult.cs
- safemediahandle.cs
- StrongBox.cs
- ManifestResourceInfo.cs
- NetSectionGroup.cs
- Empty.cs
- LazyLoadBehavior.cs
- TrustDriver.cs
- DocumentPageViewAutomationPeer.cs
- DesignerHelpers.cs
- EntityRecordInfo.cs
- XhtmlBasicLiteralTextAdapter.cs
- EncodingTable.cs
- BaseComponentEditor.cs
- DetailsViewPageEventArgs.cs
- ECDiffieHellmanPublicKey.cs
- EventLogEntryCollection.cs
- FixedSOMFixedBlock.cs
- XmlAttribute.cs
- LazyTextWriterCreator.cs
- ConsoleKeyInfo.cs
- SurrogateSelector.cs
- AutomationAttributeInfo.cs
- ObfuscationAttribute.cs
- SecurityManager.cs
- CompilationSection.cs
- EntityViewGenerationConstants.cs
- IProducerConsumerCollection.cs
- DoubleAnimationUsingPath.cs
- ConfigurationManagerInternalFactory.cs
- XmlFormatMapping.cs
- WorkflowViewManager.cs
- XmlNullResolver.cs
- ReplyChannelAcceptor.cs
- BindingManagerDataErrorEventArgs.cs
- TypeSemantics.cs
- PermissionSetEnumerator.cs
- ObjectTypeMapping.cs
- TraceLog.cs
- SourceChangedEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- FormsIdentity.cs
- ServiceEndpointElement.cs
- X509SecurityTokenProvider.cs
- FontInfo.cs
- RegexStringValidator.cs
- MasterPageBuildProvider.cs
- ViewgenGatekeeper.cs
- XPathCompileException.cs
- PersonalizationProviderCollection.cs
- CollectionBase.cs
- ManagementDateTime.cs
- ColumnWidthChangingEvent.cs
- SecureStringHasher.cs
- PolygonHotSpot.cs
- DelegateBodyWriter.cs
- ExpressionConverter.cs
- InvalidProgramException.cs
- CounterCreationDataCollection.cs
- NameSpaceExtractor.cs
- BitmapVisualManager.cs
- ProfileSection.cs
- ElementNotEnabledException.cs
- TextTreeTextNode.cs
- NetPeerTcpBinding.cs
- ExtractCollection.cs
- Native.cs