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
- SecurityPermission.cs
- Matrix3D.cs
- SweepDirectionValidation.cs
- Marshal.cs
- TableCell.cs
- AutomationIdentifier.cs
- ThreadStateException.cs
- DocumentViewer.cs
- DesignerValidatorAdapter.cs
- NamespaceDecl.cs
- EdmToObjectNamespaceMap.cs
- XPathSingletonIterator.cs
- XmlSchemaException.cs
- DesignerCatalogPartChrome.cs
- DbDataRecord.cs
- DynamicObject.cs
- ClientProxyGenerator.cs
- BaseCodePageEncoding.cs
- KeyFrames.cs
- HitTestParameters3D.cs
- LinqDataSourceEditData.cs
- HtmlSelect.cs
- ColumnMapVisitor.cs
- PersonalizableTypeEntry.cs
- ProcessHostMapPath.cs
- LinqExpressionNormalizer.cs
- ConnectionManagementElementCollection.cs
- HtmlDocument.cs
- InvokePattern.cs
- ZipFileInfo.cs
- DrawingCollection.cs
- ProfileManager.cs
- Keyboard.cs
- MobileTextWriter.cs
- UnsafePeerToPeerMethods.cs
- OptimalTextSource.cs
- RuleSettingsCollection.cs
- FileIOPermission.cs
- XamlHttpHandlerFactory.cs
- ReadOnlyDataSource.cs
- LinkGrep.cs
- SqlReorderer.cs
- InternalCache.cs
- DataRecordInternal.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SplitterEvent.cs
- DeferredTextReference.cs
- MinimizableAttributeTypeConverter.cs
- PolyBezierSegment.cs
- AccessViolationException.cs
- OperationInvokerTrace.cs
- PrivilegeNotHeldException.cs
- DataRelationCollection.cs
- LostFocusEventManager.cs
- PromptEventArgs.cs
- Publisher.cs
- CursorConverter.cs
- ValidationHelper.cs
- CellPartitioner.cs
- BinaryObjectWriter.cs
- DataGridViewCellFormattingEventArgs.cs
- DSASignatureFormatter.cs
- ToolStripPanelRenderEventArgs.cs
- CompoundFileReference.cs
- HttpWriter.cs
- CustomErrorsSectionWrapper.cs
- SortKey.cs
- TreeView.cs
- PeekCompletedEventArgs.cs
- EventPropertyMap.cs
- LinqDataSourceSelectEventArgs.cs
- prompt.cs
- CacheMode.cs
- GlobalItem.cs
- HttpHandlerActionCollection.cs
- LiteralControl.cs
- SEHException.cs
- StatusBarPanel.cs
- ACL.cs
- QueryCacheManager.cs
- ApplyImportsAction.cs
- AsyncResult.cs
- WebResponse.cs
- DataGridViewColumn.cs
- WebPartCloseVerb.cs
- HebrewNumber.cs
- SettingsContext.cs
- ContentDisposition.cs
- XsdDateTime.cs
- Literal.cs
- EnumValidator.cs
- IisTraceWebEventProvider.cs
- HttpContextServiceHost.cs
- PrintControllerWithStatusDialog.cs
- DataGridPageChangedEventArgs.cs
- PolyQuadraticBezierSegment.cs
- ObjectDataSource.cs
- DataGridViewLinkColumn.cs
- EntityCommandDefinition.cs
- sortedlist.cs