Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixUp.cs
- GPStream.cs
- InternalControlCollection.cs
- ObjectContextServiceProvider.cs
- NameSpaceExtractor.cs
- XmlMembersMapping.cs
- XmlSchemaSimpleContent.cs
- TextParagraphCache.cs
- SamlAudienceRestrictionCondition.cs
- ClientScriptManager.cs
- IndicShape.cs
- CFGGrammar.cs
- DataServices.cs
- DrawToolTipEventArgs.cs
- InterleavedZipPartStream.cs
- PropertyAccessVisitor.cs
- CheckBox.cs
- SecurityContextSecurityTokenAuthenticator.cs
- PasswordRecovery.cs
- COM2PropertyDescriptor.cs
- TypeBrowser.xaml.cs
- DeclaredTypeElement.cs
- MenuBase.cs
- CodeDomDecompiler.cs
- _ChunkParse.cs
- CollectionEditor.cs
- SqlTypesSchemaImporter.cs
- LogEntryDeserializer.cs
- WebServiceReceiveDesigner.cs
- Rules.cs
- DeferrableContent.cs
- WmfPlaceableFileHeader.cs
- HtmlHead.cs
- ApplicationHost.cs
- SimpleNameService.cs
- Parsers.cs
- AccessDataSource.cs
- RelationshipDetailsCollection.cs
- WebServiceHandlerFactory.cs
- ContentHostHelper.cs
- AspNetHostingPermission.cs
- TemplateKeyConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- EdmProviderManifest.cs
- Geometry3D.cs
- MsdtcWrapper.cs
- SHA1CryptoServiceProvider.cs
- Popup.cs
- Relationship.cs
- XmlSchemaSimpleTypeRestriction.cs
- RichTextBoxConstants.cs
- PreviewControlDesigner.cs
- MemberDescriptor.cs
- EncodingInfo.cs
- TreeIterators.cs
- TextServicesManager.cs
- MemberPathMap.cs
- SecurityTokenResolver.cs
- CharacterShapingProperties.cs
- OptimizerPatterns.cs
- SparseMemoryStream.cs
- ComplexTypeEmitter.cs
- BufferedGraphicsContext.cs
- SchemaObjectWriter.cs
- WindowsFormsHelpers.cs
- ProviderUtil.cs
- PinnedBufferMemoryStream.cs
- FaultCode.cs
- UserInitiatedRoutedEventPermission.cs
- InertiaTranslationBehavior.cs
- Renderer.cs
- ContractsBCL.cs
- CultureSpecificCharacterBufferRange.cs
- SpellerHighlightLayer.cs
- ResolvedKeyFrameEntry.cs
- BitmapPalettes.cs
- DoubleIndependentAnimationStorage.cs
- AssemblyResourceLoader.cs
- Content.cs
- AddInContractAttribute.cs
- UriPrefixTable.cs
- CompilerParameters.cs
- TableCell.cs
- ColorTranslator.cs
- NamespaceMapping.cs
- SecurityUtils.cs
- SoapClientProtocol.cs
- CryptoApi.cs
- LocatorBase.cs
- WebBrowserNavigatedEventHandler.cs
- MDIControlStrip.cs
- ActivityInterfaces.cs
- PaperSource.cs
- Compiler.cs
- Selection.cs
- XPathDocumentBuilder.cs
- Binding.cs
- ListViewEditEventArgs.cs
- TransactionScopeDesigner.cs
- Int16AnimationUsingKeyFrames.cs