Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FactoryGenerator.cs
- ReadOnlyDataSource.cs
- PartBasedPackageProperties.cs
- ChtmlPhoneCallAdapter.cs
- ContextMenuAutomationPeer.cs
- GlobalAllocSafeHandle.cs
- panel.cs
- FragmentQuery.cs
- SiteMapNodeItemEventArgs.cs
- UrlPath.cs
- StaticExtension.cs
- FileUtil.cs
- XmlBindingWorker.cs
- DynamicMethod.cs
- DetailsViewUpdateEventArgs.cs
- ObjectViewQueryResultData.cs
- _BufferOffsetSize.cs
- PeerOutputChannel.cs
- AlternateViewCollection.cs
- Vector3DConverter.cs
- SafeHandles.cs
- MDIControlStrip.cs
- Schema.cs
- ViewStateModeByIdAttribute.cs
- DrawingGroupDrawingContext.cs
- EntitySqlException.cs
- NativeMethods.cs
- DSASignatureDeformatter.cs
- GridViewCellAutomationPeer.cs
- SQLSingle.cs
- SimpleTextLine.cs
- NamedPipeConnectionPoolSettingsElement.cs
- QilGenerator.cs
- Constraint.cs
- IOThreadScheduler.cs
- ToolStripDropDownItemDesigner.cs
- TypeExtensionConverter.cs
- SystemInformation.cs
- MulticastDelegate.cs
- ImageCodecInfo.cs
- DbConnectionHelper.cs
- QueryCorrelationInitializer.cs
- EntityContainerEntitySetDefiningQuery.cs
- StylusPointDescription.cs
- MouseWheelEventArgs.cs
- WindowsTokenRoleProvider.cs
- ForceCopyBuildProvider.cs
- InputLangChangeEvent.cs
- AccessedThroughPropertyAttribute.cs
- UniqueConstraint.cs
- UnmanagedMemoryStream.cs
- AppDomainUnloadedException.cs
- TextBoxAutomationPeer.cs
- ExtractorMetadata.cs
- DllHostInitializer.cs
- XmlSchemaImporter.cs
- CultureSpecificStringDictionary.cs
- BrowserCapabilitiesFactory.cs
- Automation.cs
- ReaderWriterLock.cs
- DispatcherExceptionFilterEventArgs.cs
- EntityViewGenerationAttribute.cs
- RbTree.cs
- ThemeInfoAttribute.cs
- DataColumnPropertyDescriptor.cs
- FontFamilyIdentifier.cs
- DesignerPerfEventProvider.cs
- PackWebRequestFactory.cs
- XamlInt32CollectionSerializer.cs
- GroupItem.cs
- PostBackTrigger.cs
- HttpFormatExtensions.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- PersonalizableAttribute.cs
- PublishLicense.cs
- ColorKeyFrameCollection.cs
- DependencyPropertyAttribute.cs
- UdpUtility.cs
- KeyValuePairs.cs
- PackUriHelper.cs
- HttpCacheVaryByContentEncodings.cs
- DispatchChannelSink.cs
- MetadataCache.cs
- XmlConvert.cs
- TextProperties.cs
- DesignerObject.cs
- CheckedPointers.cs
- SchemaElementDecl.cs
- RemotingSurrogateSelector.cs
- ColorConverter.cs
- XmlQualifiedName.cs
- DataObjectEventArgs.cs
- VBIdentifierName.cs
- MailSettingsSection.cs
- ScrollBarRenderer.cs
- PartitionResolver.cs
- DragEvent.cs
- TraversalRequest.cs
- securestring.cs
- StyleTypedPropertyAttribute.cs