Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Int64Converter.cs / 1 / Int64Converter.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 Int64Converter : BaseNumberConverter { ///Provides a type converter to convert 64-bit signed integer objects to and /// from various other representations. ////// The Type this converter is targeting (e.g. Int16, UInt32, etc.) /// internal override Type TargetType { get { return typeof(Int64); } } ////// Convert the given value to a string using the given radix /// internal override object FromString(string value, int radix) { return Convert.ToInt64(value, radix); } ////// Convert the given value to a string using the given formatInfo /// internal override object FromString(string value, NumberFormatInfo formatInfo) { return Int64.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 Int64.Parse(value, culture); } ////// Convert the given value from a string using the given formatInfo /// internal override string ToString(object value, NumberFormatInfo formatInfo) { return ((Int64)value).ToString("G", formatInfo); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeSource.cs
- DeviceContext.cs
- ExpressionBuilder.cs
- _NativeSSPI.cs
- XPathMessageFilterElementCollection.cs
- BCLDebug.cs
- CachedRequestParams.cs
- UInt64.cs
- NumericUpDownAccelerationCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- PathStreamGeometryContext.cs
- ProtocolsConfiguration.cs
- PointLight.cs
- MdImport.cs
- HashCodeCombiner.cs
- CompressStream.cs
- SiteMapDataSourceView.cs
- FormsAuthentication.cs
- CodeDelegateCreateExpression.cs
- CacheForPrimitiveTypes.cs
- FontStretch.cs
- MessageLoggingFilterTraceRecord.cs
- XmlSchemaComplexType.cs
- SoapSchemaExporter.cs
- BitmapEffectOutputConnector.cs
- IteratorFilter.cs
- Filter.cs
- Fonts.cs
- WindowsFormsSynchronizationContext.cs
- CollectionType.cs
- InstanceContextMode.cs
- DirectoryNotFoundException.cs
- DbDataReader.cs
- EpmContentDeSerializer.cs
- ThreadExceptionDialog.cs
- StyleCollectionEditor.cs
- Fonts.cs
- DomainUpDown.cs
- VirtualPathProvider.cs
- RuntimeEnvironment.cs
- CreateParams.cs
- TextSelectionHighlightLayer.cs
- TransferRequestHandler.cs
- ConsumerConnectionPoint.cs
- Variant.cs
- _ShellExpression.cs
- PrintPageEvent.cs
- ContentPresenter.cs
- AttachedAnnotationChangedEventArgs.cs
- TransactedBatchContext.cs
- XmlBinaryWriter.cs
- ColorTransform.cs
- FixedSOMTableCell.cs
- DebugInfoGenerator.cs
- TypeDependencyAttribute.cs
- SmiEventSink_Default.cs
- ErrorWrapper.cs
- GetKeyedHashRequest.cs
- GridViewEditEventArgs.cs
- Int32EqualityComparer.cs
- FactoryRecord.cs
- CollectionEditor.cs
- BindingNavigator.cs
- StyleBamlTreeBuilder.cs
- InstanceHandle.cs
- SynchronizedDispatch.cs
- DataGridViewCellStateChangedEventArgs.cs
- RangeValuePattern.cs
- SingleTagSectionHandler.cs
- ExtensionWindowHeader.cs
- SystemIPInterfaceProperties.cs
- ColorContext.cs
- TextStore.cs
- TableLayoutSettings.cs
- WorkflowClientDeliverMessageWrapper.cs
- DefinitionBase.cs
- SingleObjectCollection.cs
- Pen.cs
- ConnectionConsumerAttribute.cs
- TransformGroup.cs
- ResourceBinder.cs
- RelatedImageListAttribute.cs
- SoapSchemaMember.cs
- ClientConfigurationSystem.cs
- StructuredTypeEmitter.cs
- Line.cs
- FullTextBreakpoint.cs
- CredentialSelector.cs
- RegexMatch.cs
- ClientUrlResolverWrapper.cs
- ListBase.cs
- StrokeCollectionConverter.cs
- TextFormatterHost.cs
- XmlTextReader.cs
- ScriptRegistrationManager.cs
- NetTcpSecurityElement.cs
- OdbcConnectionString.cs
- HashCryptoHandle.cs
- FastEncoderStatics.cs
- PropertyDescriptorCollection.cs