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
- OperationFormatStyle.cs
- AppSecurityManager.cs
- XmlDomTextWriter.cs
- ObjectItemCachedAssemblyLoader.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- SymmetricKeyWrap.cs
- ToolStripLocationCancelEventArgs.cs
- WebServicesDescriptionAttribute.cs
- DiagnosticStrings.cs
- VirtualPathProvider.cs
- ConversionContext.cs
- ParameterModifier.cs
- LicenseProviderAttribute.cs
- ObjRef.cs
- Exceptions.cs
- SqlUtils.cs
- DataTable.cs
- GeneralTransform2DTo3DTo2D.cs
- TTSEngineTypes.cs
- mediaeventargs.cs
- SamlSerializer.cs
- MetadataCollection.cs
- ClientConfigurationSystem.cs
- NavigationCommands.cs
- CommandField.cs
- Mutex.cs
- InvokeProviderWrapper.cs
- WebPartConnectionsCancelEventArgs.cs
- SchemaImporter.cs
- OptimalBreakSession.cs
- XamlReaderHelper.cs
- CatalogPartCollection.cs
- DataColumnCollection.cs
- AuthenticationConfig.cs
- PolicyException.cs
- RoleServiceManager.cs
- EncoderReplacementFallback.cs
- HWStack.cs
- UIInitializationException.cs
- IDReferencePropertyAttribute.cs
- TargetControlTypeAttribute.cs
- ZipPackagePart.cs
- PositiveTimeSpanValidator.cs
- OrthographicCamera.cs
- ObjectContext.cs
- TableRowsCollectionEditor.cs
- HtmlElement.cs
- TailCallAnalyzer.cs
- XmlDocumentFragment.cs
- SchemaImporter.cs
- PaintEvent.cs
- SystemIPGlobalStatistics.cs
- XomlCompilerParameters.cs
- HorizontalAlignConverter.cs
- SpeechRecognitionEngine.cs
- ClientTargetSection.cs
- WmlLinkAdapter.cs
- LowerCaseStringConverter.cs
- ObjectKeyFrameCollection.cs
- Predicate.cs
- ByteStack.cs
- MouseButtonEventArgs.cs
- AdapterDictionary.cs
- ArgumentNullException.cs
- ConfigurationValidatorBase.cs
- MemberAccessException.cs
- ExpandedWrapper.cs
- Regex.cs
- WorkflowTerminatedException.cs
- ScriptManager.cs
- ContextStaticAttribute.cs
- XmlArrayItemAttribute.cs
- PlatformCulture.cs
- HostedHttpContext.cs
- DocumentEventArgs.cs
- BezierSegment.cs
- BlockingCollection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- PeerTransportSecurityElement.cs
- TagMapInfo.cs
- LinqDataSourceDisposeEventArgs.cs
- CorePropertiesFilter.cs
- InsufficientExecutionStackException.cs
- coordinatorscratchpad.cs
- BindMarkupExtensionSerializer.cs
- AnimationTimeline.cs
- RoleGroup.cs
- EventProxy.cs
- Label.cs
- IgnoreSection.cs
- XmlNotation.cs
- HttpInputStream.cs
- BindableAttribute.cs
- GeometryCollection.cs
- TracingConnection.cs
- VsPropertyGrid.cs
- MILUtilities.cs
- UserPrincipalNameElement.cs
- DbConnectionPoolOptions.cs
- DataGridViewColumnStateChangedEventArgs.cs