Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CheckBoxRenderer.cs
- _PooledStream.cs
- TextAnchor.cs
- WebSysDefaultValueAttribute.cs
- WeakReferenceEnumerator.cs
- VerticalAlignConverter.cs
- MethodExecutor.cs
- NoneExcludedImageIndexConverter.cs
- DataGridViewColumn.cs
- RelationshipEndMember.cs
- TaskCanceledException.cs
- FamilyMapCollection.cs
- HtmlEmptyTagControlBuilder.cs
- SourceChangedEventArgs.cs
- _Rfc2616CacheValidators.cs
- Subtree.cs
- ListControlConvertEventArgs.cs
- SoapSchemaExporter.cs
- DrawingContextWalker.cs
- RegularExpressionValidator.cs
- DataGridViewHeaderCell.cs
- SchemaMapping.cs
- XmlSchemaSubstitutionGroup.cs
- DirectionalLight.cs
- ValueOfAction.cs
- LineServices.cs
- SqlProviderServices.cs
- SqlExpander.cs
- InternalSafeNativeMethods.cs
- SerializationException.cs
- DbConnectionStringCommon.cs
- UnsafeMethods.cs
- TextTreeFixupNode.cs
- DEREncoding.cs
- Sorting.cs
- SpotLight.cs
- DataRecordInfo.cs
- ContourSegment.cs
- ComplusTypeValidator.cs
- SharedStatics.cs
- ReliableDuplexSessionChannel.cs
- SqlUtils.cs
- URLString.cs
- ToolStripRendererSwitcher.cs
- ObjectStateEntry.cs
- IgnoreSection.cs
- SessionStateItemCollection.cs
- ZoneMembershipCondition.cs
- PolicyException.cs
- TouchPoint.cs
- HandlerMappingMemo.cs
- AutoFocusStyle.xaml.cs
- EdmEntityTypeAttribute.cs
- HttpCachePolicyWrapper.cs
- DecryptRequest.cs
- Dispatcher.cs
- GridViewColumnHeader.cs
- ConstructorExpr.cs
- AttributeQuery.cs
- SchemaUtility.cs
- Point4DValueSerializer.cs
- RepeaterDataBoundAdapter.cs
- SetIterators.cs
- BitmapCodecInfo.cs
- BaseUriWithWildcard.cs
- FtpWebResponse.cs
- PersonalizationProvider.cs
- TraceHandler.cs
- OdbcReferenceCollection.cs
- ObjectDataSourceEventArgs.cs
- DbTransaction.cs
- OracleRowUpdatedEventArgs.cs
- MultipartIdentifier.cs
- DataBindingsDialog.cs
- XmlSchemaSimpleTypeUnion.cs
- ValidationSummary.cs
- NotifyCollectionChangedEventArgs.cs
- ControlPropertyNameConverter.cs
- CodeSnippetExpression.cs
- TextBox.cs
- InputReportEventArgs.cs
- XMLUtil.cs
- VBIdentifierName.cs
- MailSettingsSection.cs
- SystemWebExtensionsSectionGroup.cs
- Conditional.cs
- TrackingServices.cs
- XmlEncoding.cs
- ToolZone.cs
- WithParamAction.cs
- AbstractExpressions.cs
- PostBackOptions.cs
- ProfessionalColorTable.cs
- IOThreadScheduler.cs
- SQLInt32Storage.cs
- SHA512Managed.cs
- CatalogZone.cs
- InputEventArgs.cs
- _HelperAsyncResults.cs
- SqlMetaData.cs