Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / UInt64Converter.cs / 1 / UInt64Converter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.Serialization.Formatters; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class UInt64Converter : BaseNumberConverter { ///Provides a type converter to convert 64-bit unsigned integer objects to and /// from various other representations. ////// The Type this converter is targeting (e.g. Int16, UInt64, etc.) /// internal override Type TargetType { get { return typeof(UInt64); } } ////// Convert the given value to a string using the given radix /// internal override object FromString(string value, int radix) { return Convert.ToUInt64(value, radix); } ////// Convert the given value to a string using the given formatInfo /// internal override object FromString(string value, NumberFormatInfo formatInfo) { return UInt64.Parse(value, NumberStyles.Integer, formatInfo); } ////// Convert the given value to a string using the given CultureInfo /// internal override object FromString(string value, CultureInfo culture){ return UInt64.Parse(value, culture); } ////// Convert the given value from a string using the given formatInfo /// internal override string ToString(object value, NumberFormatInfo formatInfo) { return ((UInt64)value).ToString("G", formatInfo); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.Serialization.Formatters; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class UInt64Converter : BaseNumberConverter { ///Provides a type converter to convert 64-bit unsigned integer objects to and /// from various other representations. ////// The Type this converter is targeting (e.g. Int16, UInt64, etc.) /// internal override Type TargetType { get { return typeof(UInt64); } } ////// Convert the given value to a string using the given radix /// internal override object FromString(string value, int radix) { return Convert.ToUInt64(value, radix); } ////// Convert the given value to a string using the given formatInfo /// internal override object FromString(string value, NumberFormatInfo formatInfo) { return UInt64.Parse(value, NumberStyles.Integer, formatInfo); } ////// Convert the given value to a string using the given CultureInfo /// internal override object FromString(string value, CultureInfo culture){ return UInt64.Parse(value, culture); } ////// Convert the given value from a string using the given formatInfo /// internal override string ToString(object value, NumberFormatInfo formatInfo) { return ((UInt64)value).ToString("G", formatInfo); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripActionList.cs
- _TLSstream.cs
- ReaderWriterLock.cs
- RelationshipManager.cs
- XmlWriterTraceListener.cs
- Font.cs
- VectorCollectionConverter.cs
- User.cs
- ListInitExpression.cs
- SupportingTokenProviderSpecification.cs
- StrokeCollectionDefaultValueFactory.cs
- VariableExpressionConverter.cs
- Utils.cs
- ConcurrentDictionary.cs
- UnmanagedBitmapWrapper.cs
- StringArrayEditor.cs
- SystemWebCachingSectionGroup.cs
- QueryRewriter.cs
- DurationConverter.cs
- Stacktrace.cs
- OrderByBuilder.cs
- TextTrailingWordEllipsis.cs
- TimeBoundedCache.cs
- MergeLocalizationDirectives.cs
- CssClassPropertyAttribute.cs
- RSAOAEPKeyExchangeFormatter.cs
- StorageAssociationTypeMapping.cs
- PreservationFileReader.cs
- CodeObject.cs
- XmlChildEnumerator.cs
- AlgoModule.cs
- ManualResetEventSlim.cs
- X500Name.cs
- BlockUIContainer.cs
- CodeVariableDeclarationStatement.cs
- BasicExpressionVisitor.cs
- CaseInsensitiveHashCodeProvider.cs
- PresentationSource.cs
- ScriptControlDescriptor.cs
- XmlSchemaProviderAttribute.cs
- Transform3DGroup.cs
- DateTimeOffsetStorage.cs
- GradientBrush.cs
- MailWriter.cs
- Decimal.cs
- TranslateTransform3D.cs
- InnerItemCollectionView.cs
- SynchronizedDispatch.cs
- StringAnimationBase.cs
- Ipv6Element.cs
- InstalledFontCollection.cs
- MouseCaptureWithinProperty.cs
- CorrelationQueryBehavior.cs
- LineMetrics.cs
- Accessors.cs
- IOException.cs
- DynamicILGenerator.cs
- DrawListViewItemEventArgs.cs
- RegisteredArrayDeclaration.cs
- XmlSignatureManifest.cs
- RealizedColumnsBlock.cs
- DataControlImageButton.cs
- ChangeNode.cs
- XmlLanguageConverter.cs
- CachingHintValidation.cs
- ConnectionManagementElement.cs
- CodeMemberProperty.cs
- TransformationRules.cs
- DirectionalLight.cs
- PathSegmentCollection.cs
- SponsorHelper.cs
- FileReader.cs
- OletxVolatileEnlistment.cs
- SimpleWebHandlerParser.cs
- HttpContextBase.cs
- CaseInsensitiveHashCodeProvider.cs
- TreeViewCancelEvent.cs
- CodeIdentifiers.cs
- EdmProviderManifest.cs
- WindowsListViewSubItem.cs
- StrongNameIdentityPermission.cs
- UInt32Storage.cs
- HtmlInputFile.cs
- AttributeEmitter.cs
- TcpActivation.cs
- PageParser.cs
- DropAnimation.xaml.cs
- UriParserTemplates.cs
- ForwardPositionQuery.cs
- DataSourceSelectArguments.cs
- SmiMetaData.cs
- ThreadExceptionDialog.cs
- UidPropertyAttribute.cs
- DataContractAttribute.cs
- HtmlHistory.cs
- UriSection.cs
- DecoderFallbackWithFailureFlag.cs
- X509IssuerSerialKeyIdentifierClause.cs
- MembershipValidatePasswordEventArgs.cs
- X509ChainPolicy.cs