Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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
- PopupEventArgs.cs
- BinHexEncoder.cs
- ClientEventManager.cs
- GradientStopCollection.cs
- CompoundFileDeflateTransform.cs
- WizardPanelChangingEventArgs.cs
- ReverseInheritProperty.cs
- SqlError.cs
- ToolStripOverflowButton.cs
- ipaddressinformationcollection.cs
- ConnectionManagementElementCollection.cs
- DrawingContextFlattener.cs
- RelatedImageListAttribute.cs
- DrawingGroup.cs
- WebBrowsableAttribute.cs
- DiscoveryVersionConverter.cs
- KeyboardNavigation.cs
- ObjectTag.cs
- FlowDocumentPage.cs
- OleDbDataReader.cs
- StrokeFIndices.cs
- DetailsViewInsertedEventArgs.cs
- HostingEnvironment.cs
- ThemeDirectoryCompiler.cs
- IntSumAggregationOperator.cs
- DispatchOperationRuntime.cs
- ApplicationHost.cs
- DataGridViewCell.cs
- codemethodreferenceexpression.cs
- FrameworkContentElement.cs
- CaseInsensitiveComparer.cs
- ThicknessKeyFrameCollection.cs
- FieldAccessException.cs
- QilExpression.cs
- SafeCryptHandles.cs
- Ticks.cs
- EntryPointNotFoundException.cs
- TimerElapsedEvenArgs.cs
- ExternalCalls.cs
- DataGridViewMethods.cs
- DataGridParentRows.cs
- Property.cs
- SQLSingleStorage.cs
- SimpleLine.cs
- PriorityQueue.cs
- GenerateTemporaryTargetAssembly.cs
- Decoder.cs
- LayoutTableCell.cs
- BitmapEffectDrawingContextWalker.cs
- XomlCompilerResults.cs
- Canvas.cs
- DetailsViewDeleteEventArgs.cs
- SqlFileStream.cs
- Fx.cs
- ObjectStateManager.cs
- XmlSchemaSimpleContentRestriction.cs
- ColorPalette.cs
- IdnMapping.cs
- AssociationEndMember.cs
- ListControl.cs
- AsyncContentLoadedEventArgs.cs
- BindingWorker.cs
- ControlParameter.cs
- HttpListenerException.cs
- Camera.cs
- DateTimeConstantAttribute.cs
- XPathExpr.cs
- MasterPage.cs
- XmlTypeAttribute.cs
- XmlILIndex.cs
- ByteRangeDownloader.cs
- DataObject.cs
- KeyboardEventArgs.cs
- ObjectIDGenerator.cs
- FillBehavior.cs
- ByeMessageApril2005.cs
- ConfigPathUtility.cs
- SoapCommonClasses.cs
- XPathSingletonIterator.cs
- BaseCAMarshaler.cs
- MgmtConfigurationRecord.cs
- HandlerBase.cs
- FontCacheUtil.cs
- DemultiplexingClientMessageFormatter.cs
- DocumentGrid.cs
- GroupItemAutomationPeer.cs
- InvalidTimeZoneException.cs
- ChildTable.cs
- MetadataItemSerializer.cs
- TableLayoutPanelCellPosition.cs
- XmlILStorageConverter.cs
- ClientSideProviderDescription.cs
- SurrogateEncoder.cs
- SmiGettersStream.cs
- SoapMessage.cs
- CodeTypeParameter.cs
- HostVisual.cs
- WebPartTransformerCollection.cs
- CacheHelper.cs
- CodeDelegateInvokeExpression.cs