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
- TextRange.cs
- Scalars.cs
- AuthenticationServiceManager.cs
- XmlSchema.cs
- ValidateNames.cs
- MemoryMappedViewAccessor.cs
- PathNode.cs
- Utils.cs
- MaterialGroup.cs
- ResXBuildProvider.cs
- CloseCryptoHandleRequest.cs
- XamlFilter.cs
- DataBoundControlHelper.cs
- Polygon.cs
- ExeConfigurationFileMap.cs
- Oid.cs
- DrawingGroup.cs
- TraceEventCache.cs
- PointF.cs
- Object.cs
- VBCodeProvider.cs
- GridEntryCollection.cs
- SQLGuidStorage.cs
- SignedPkcs7.cs
- DataGridColumnCollection.cs
- GeneralTransform3DTo2D.cs
- PropertyRecord.cs
- CustomAttributeSerializer.cs
- NativeRecognizer.cs
- SiteMapNode.cs
- ClipboardProcessor.cs
- CommandExpr.cs
- DeploymentExceptionMapper.cs
- FileNameEditor.cs
- StateDesigner.TransitionInfo.cs
- CompositionTarget.cs
- TextRangeAdaptor.cs
- StreamReader.cs
- Mappings.cs
- DoubleCollection.cs
- FastEncoderWindow.cs
- DrawListViewItemEventArgs.cs
- XmlSchemaComplexContent.cs
- SqlNotificationRequest.cs
- InputReportEventArgs.cs
- GeneralTransformGroup.cs
- ClientUtils.cs
- ipaddressinformationcollection.cs
- XmlSchemaSequence.cs
- Publisher.cs
- PathSegmentCollection.cs
- ChildTable.cs
- TableProvider.cs
- RegexStringValidatorAttribute.cs
- ErrorInfoXmlDocument.cs
- UnmanagedMarshal.cs
- _SpnDictionary.cs
- CodeFieldReferenceExpression.cs
- DebugHandleTracker.cs
- TextEditorCharacters.cs
- ReflectPropertyDescriptor.cs
- TcpChannelFactory.cs
- ScriptResourceHandler.cs
- DataGridViewRowsAddedEventArgs.cs
- BitmapData.cs
- ManagementEventArgs.cs
- DTCTransactionManager.cs
- AuthorizationSection.cs
- CssClassPropertyAttribute.cs
- VectorAnimationBase.cs
- HGlobalSafeHandle.cs
- DbProviderManifest.cs
- BasicExpandProvider.cs
- InstanceStoreQueryResult.cs
- ConsoleCancelEventArgs.cs
- Calendar.cs
- IPEndPointCollection.cs
- HyperLink.cs
- SettingsBase.cs
- LayeredChannelListener.cs
- ProgressChangedEventArgs.cs
- OleDbSchemaGuid.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SspiSafeHandles.cs
- httpstaticobjectscollection.cs
- RegexStringValidatorAttribute.cs
- ResourceReferenceKeyNotFoundException.cs
- SqlParameterizer.cs
- TraceLevelStore.cs
- HttpAsyncResult.cs
- SQLInt16Storage.cs
- Evaluator.cs
- DuplicateWaitObjectException.cs
- CryptoConfig.cs
- TypeConverter.cs
- BaseConfigurationRecord.cs
- DataControlFieldTypeEditor.cs
- EntityDataSourceSelectedEventArgs.cs
- QueryExpression.cs
- DefaultClaimSet.cs