Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DisableDpiAwarenessAttribute.cs
- _LocalDataStore.cs
- TriggerActionCollection.cs
- entityreference_tresulttype.cs
- AdornerPresentationContext.cs
- HttpCookie.cs
- RectangleGeometry.cs
- TouchesCapturedWithinProperty.cs
- LocalIdKeyIdentifierClause.cs
- UIEndRequest.cs
- ParagraphResult.cs
- AsynchronousChannel.cs
- XhtmlBasicLabelAdapter.cs
- LineBreak.cs
- BitmapEffectCollection.cs
- HwndKeyboardInputProvider.cs
- SHA256.cs
- NameObjectCollectionBase.cs
- OdbcRowUpdatingEvent.cs
- XmlMembersMapping.cs
- EntityDataSourceWrapper.cs
- ConfigurationSchemaErrors.cs
- xmlglyphRunInfo.cs
- BaseProcessor.cs
- TransformCryptoHandle.cs
- UnsafeNativeMethodsTablet.cs
- PropertyPushdownHelper.cs
- ToolboxComponentsCreatingEventArgs.cs
- FontFamilyValueSerializer.cs
- InputLanguageCollection.cs
- IfAction.cs
- ElementProxy.cs
- NameValuePair.cs
- DesignSurface.cs
- DashStyles.cs
- ColumnHeaderConverter.cs
- EmptyEnumerable.cs
- PowerModeChangedEventArgs.cs
- SemaphoreFullException.cs
- AppDomainProtocolHandler.cs
- CodeCastExpression.cs
- HandlerWithFactory.cs
- PipeConnection.cs
- OpCellTreeNode.cs
- PartialCachingControl.cs
- Resources.Designer.cs
- ViewPort3D.cs
- MinimizableAttributeTypeConverter.cs
- ProfileInfo.cs
- WsdlInspector.cs
- SafeFileMappingHandle.cs
- ProfileParameter.cs
- Matrix3DStack.cs
- TabItem.cs
- _LazyAsyncResult.cs
- SqlBulkCopyColumnMappingCollection.cs
- BaseProcessor.cs
- AppSettingsReader.cs
- PrimitiveSchema.cs
- MsmqInputChannelBase.cs
- DataKey.cs
- GeometryGroup.cs
- Panel.cs
- ManifestResourceInfo.cs
- TerminatingOperationBehavior.cs
- wpf-etw.cs
- RectangleHotSpot.cs
- CustomAssemblyResolver.cs
- HtmlTextViewAdapter.cs
- XmlnsCache.cs
- XmlSchemaComplexType.cs
- UDPClient.cs
- UrlPath.cs
- ScopelessEnumAttribute.cs
- TransactionBridgeSection.cs
- BitmapEffectGeneralTransform.cs
- DateTimeConstantAttribute.cs
- HtmlForm.cs
- Symbol.cs
- XmlSchemaSearchPattern.cs
- ZipIORawDataFileBlock.cs
- ReferencedAssemblyResolver.cs
- SmiGettersStream.cs
- StringAnimationUsingKeyFrames.cs
- SqlUdtInfo.cs
- AuthorizationSection.cs
- WindowsTooltip.cs
- Control.cs
- Composition.cs
- DataSourceUtil.cs
- CodeNamespaceImportCollection.cs
- ConversionHelper.cs
- ResourceReferenceKeyNotFoundException.cs
- TaskForm.cs
- ColumnMapCopier.cs
- SqlSupersetValidator.cs
- BindableTemplateBuilder.cs
- DataRowCollection.cs
- KnownColorTable.cs
- ImageAnimator.cs