Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / UInt64Converter.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlCaseSimplifier.cs
- XmlElementAttributes.cs
- AddInToken.cs
- ItemsPresenter.cs
- WebPartConnectionsConfigureVerb.cs
- EventPrivateKey.cs
- MembershipValidatePasswordEventArgs.cs
- srgsitem.cs
- FieldAccessException.cs
- ListBox.cs
- ThicknessConverter.cs
- QuaternionIndependentAnimationStorage.cs
- LoadMessageLogger.cs
- DataGridColumn.cs
- SQLMoney.cs
- TextParagraphCache.cs
- DetailsView.cs
- CompilerGeneratedAttribute.cs
- HierarchicalDataSourceControl.cs
- FieldNameLookup.cs
- WebUtil.cs
- DataGridViewRowCancelEventArgs.cs
- RotateTransform3D.cs
- CodeChecksumPragma.cs
- ObjRef.cs
- RootBuilder.cs
- SerializationSectionGroup.cs
- OracleConnection.cs
- ObjectListDesigner.cs
- XPathNodeHelper.cs
- TreeView.cs
- UserUseLicenseDictionaryLoader.cs
- ErrorFormatter.cs
- CDSsyncETWBCLProvider.cs
- ZoomComboBox.cs
- KeyboardEventArgs.cs
- ExtendedProtectionPolicy.cs
- LZCodec.cs
- Style.cs
- PartitionResolver.cs
- WorkflowRuntimeService.cs
- BindUriHelper.cs
- NumericUpDownAcceleration.cs
- SelectionManager.cs
- ContextConfiguration.cs
- AsymmetricSignatureDeformatter.cs
- ActivityTypeCodeDomSerializer.cs
- _IPv6Address.cs
- sqlinternaltransaction.cs
- Base64Encoding.cs
- ActivityBindForm.cs
- ListView.cs
- BuildResultCache.cs
- Size3DConverter.cs
- StrokeCollection.cs
- _Events.cs
- ColumnTypeConverter.cs
- Bold.cs
- documentsequencetextcontainer.cs
- RootDesignerSerializerAttribute.cs
- HtmlElementCollection.cs
- HttpConfigurationSystem.cs
- URLAttribute.cs
- FileSystemWatcher.cs
- DSASignatureDeformatter.cs
- DefaultObjectMappingItemCollection.cs
- ListBindableAttribute.cs
- ByteStreamMessageEncoder.cs
- LeftCellWrapper.cs
- IPipelineRuntime.cs
- UriSection.cs
- SqlRemoveConstantOrderBy.cs
- WindowsListView.cs
- WebHttpSecurity.cs
- MsdtcClusterUtils.cs
- FullTrustAssembliesSection.cs
- Empty.cs
- CodePageEncoding.cs
- DateTimeConverter.cs
- ToolStripButton.cs
- ListViewTableRow.cs
- HttpBrowserCapabilitiesWrapper.cs
- QilVisitor.cs
- SqlProviderManifest.cs
- ReachDocumentSequenceSerializerAsync.cs
- MetadataPropertyCollection.cs
- PermissionAttributes.cs
- TypefaceMetricsCache.cs
- RectangleGeometry.cs
- InkCanvasAutomationPeer.cs
- CodeTypeDeclarationCollection.cs
- SoapIgnoreAttribute.cs
- SecurityPermission.cs
- UrlParameterReader.cs
- ElementFactory.cs
- ListCollectionView.cs
- SystemUnicastIPAddressInformation.cs
- Addressing.cs
- SafeSecurityHandles.cs
- ServiceHttpModule.cs