Code:
/ FX-1434 / FX-1434 / 1.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
- DataPagerFieldCollection.cs
- SecurityDocument.cs
- SharedStream.cs
- _ListenerAsyncResult.cs
- XmlException.cs
- StateBag.cs
- GeneralTransform.cs
- DBSchemaRow.cs
- GlobalizationSection.cs
- FontStretches.cs
- SocketException.cs
- ControlPaint.cs
- SynchronizationValidator.cs
- MULTI_QI.cs
- InputLanguageCollection.cs
- DelegateSerializationHolder.cs
- VerticalAlignConverter.cs
- UrlPath.cs
- NativeMethods.cs
- RotateTransform3D.cs
- DictionaryItemsCollection.cs
- UrlMapping.cs
- MultiPageTextView.cs
- DiscoveryDocument.cs
- BitmapEffectDrawingContent.cs
- ObjectQueryProvider.cs
- CompatibleIComparer.cs
- WebPartUserCapability.cs
- ListView.cs
- XmlSchemaType.cs
- OpacityConverter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- LinkDescriptor.cs
- DetailsViewModeEventArgs.cs
- ChannelServices.cs
- SoapElementAttribute.cs
- errorpatternmatcher.cs
- EncoderReplacementFallback.cs
- FontCollection.cs
- RemoteWebConfigurationHost.cs
- BrushValueSerializer.cs
- UnsettableComboBox.cs
- ClientCredentialsElement.cs
- RangeValueProviderWrapper.cs
- FileVersionInfo.cs
- DescendantQuery.cs
- DataKeyArray.cs
- DefaultDiscoveryService.cs
- ExpandoClass.cs
- CodeIdentifier.cs
- DrawingContextWalker.cs
- MetafileHeader.cs
- ChannelFactoryRefCache.cs
- AccessDataSourceDesigner.cs
- ValidatorCompatibilityHelper.cs
- Rect.cs
- CleanUpVirtualizedItemEventArgs.cs
- CompilerState.cs
- SqlParameterizer.cs
- VectorValueSerializer.cs
- HostedHttpTransportManager.cs
- DataFormats.cs
- Positioning.cs
- HMACMD5.cs
- SystemResourceKey.cs
- WebPartsSection.cs
- MessageDroppedTraceRecord.cs
- BufferAllocator.cs
- RegexFCD.cs
- ConfigurationException.cs
- Serializer.cs
- WindowsGraphicsCacheManager.cs
- ClientRuntimeConfig.cs
- BrowserInteropHelper.cs
- DependencyObject.cs
- DetailsViewInsertedEventArgs.cs
- DriveNotFoundException.cs
- SmtpSection.cs
- ServiceDocumentFormatter.cs
- Vector3DAnimationUsingKeyFrames.cs
- MetadataProperty.cs
- ExtenderProvidedPropertyAttribute.cs
- TemplateBindingExtensionConverter.cs
- SqlSelectStatement.cs
- shaperfactory.cs
- Vector3DAnimationUsingKeyFrames.cs
- Panel.cs
- PartialCachingAttribute.cs
- ZipPackagePart.cs
- LogLogRecord.cs
- HttpGetServerProtocol.cs
- RequestBringIntoViewEventArgs.cs
- ReaderWriterLockWrapper.cs
- PrivilegedConfigurationManager.cs
- CodeIndexerExpression.cs
- metadatamappinghashervisitor.cs
- CodeGenerator.cs
- FreezableCollection.cs
- DataGridViewCellParsingEventArgs.cs
- EditBehavior.cs