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
- AxHostDesigner.cs
- SaveFileDialogDesigner.cs
- NullableDecimalSumAggregationOperator.cs
- SourceChangedEventArgs.cs
- SoapInteropTypes.cs
- FlowDocumentPage.cs
- TrackingMemoryStream.cs
- Nullable.cs
- Renderer.cs
- KeyInstance.cs
- ValidationErrorCollection.cs
- PolyBezierSegment.cs
- TraceEventCache.cs
- WebPartConnection.cs
- HtmlTextArea.cs
- WindowsTokenRoleProvider.cs
- AutoGeneratedFieldProperties.cs
- MILUtilities.cs
- NoResizeHandleGlyph.cs
- ScriptModule.cs
- TextTreeFixupNode.cs
- SpAudioStreamWrapper.cs
- MdImport.cs
- AspNetHostingPermission.cs
- TreeView.cs
- ProviderSettings.cs
- TrackBarDesigner.cs
- ImageListUtils.cs
- SimpleRecyclingCache.cs
- COM2ColorConverter.cs
- WindowsScrollBar.cs
- AnimationException.cs
- TextElementCollection.cs
- ColorTypeConverter.cs
- ViewSimplifier.cs
- ReachSerializer.cs
- TransmissionStrategy.cs
- ColorTransformHelper.cs
- OperationBehaviorAttribute.cs
- TypeSystemProvider.cs
- TimeEnumHelper.cs
- Int16Storage.cs
- BindingManagerDataErrorEventArgs.cs
- KeyValuePairs.cs
- HttpProfileGroupBase.cs
- DesignerSerializationOptionsAttribute.cs
- ServerValidateEventArgs.cs
- WindowsSolidBrush.cs
- ActivityDesignerAccessibleObject.cs
- GlyphRun.cs
- FamilyMapCollection.cs
- DelegatingTypeDescriptionProvider.cs
- ProgressBar.cs
- PixelShader.cs
- GlobalItem.cs
- SqlMethods.cs
- BitmapSource.cs
- RightsManagementResourceHelper.cs
- ForceCopyBuildProvider.cs
- ExpressionList.cs
- URL.cs
- WinEventWrap.cs
- ServiceModelConfigurationElementCollection.cs
- SymbolMethod.cs
- Switch.cs
- IResourceProvider.cs
- WebPartManager.cs
- TypeDescriptionProvider.cs
- DesignerAttribute.cs
- TemplateXamlParser.cs
- HelpProvider.cs
- DbParameterCollectionHelper.cs
- BitVec.cs
- XmlSchemaInclude.cs
- EventProviderBase.cs
- BitmapEffect.cs
- ResourceDictionaryCollection.cs
- TextBox.cs
- ButtonFlatAdapter.cs
- UIElementCollection.cs
- LabelDesigner.cs
- NullRuntimeConfig.cs
- Transform3D.cs
- SynchronizedInputAdaptor.cs
- TypeExtensionConverter.cs
- ColorInterpolationModeValidation.cs
- TableCell.cs
- Baml2006ReaderSettings.cs
- httpstaticobjectscollection.cs
- SmtpSection.cs
- FormViewDeleteEventArgs.cs
- MetadataCacheItem.cs
- ZipIOExtraFieldElement.cs
- EntryIndex.cs
- _AutoWebProxyScriptWrapper.cs
- ComponentDispatcher.cs
- ISO2022Encoding.cs
- XmlSchemaImport.cs
- XmlCDATASection.cs
- SmiContext.cs