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 / 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
- Bits.cs
- Camera.cs
- EUCJPEncoding.cs
- SamlAssertionKeyIdentifierClause.cs
- MappingMetadataHelper.cs
- CodeAssignStatement.cs
- Baml2006ReaderContext.cs
- TypeLibraryHelper.cs
- ReadOnlyAttribute.cs
- TextBox.cs
- GeometryGroup.cs
- BaseDataBoundControl.cs
- LayoutEngine.cs
- DescriptionAttribute.cs
- TaskForm.cs
- TypedTableBase.cs
- WindowsFormsLinkLabel.cs
- ProfileModule.cs
- MarkedHighlightComponent.cs
- XXXInfos.cs
- SecurityElement.cs
- FontInfo.cs
- SamlAuthorizationDecisionStatement.cs
- AccessDataSourceView.cs
- StyleCollection.cs
- HwndAppCommandInputProvider.cs
- HostedHttpTransportManager.cs
- Graphics.cs
- ImageList.cs
- FrameworkElementAutomationPeer.cs
- PackageDocument.cs
- X509SecurityTokenAuthenticator.cs
- RegistrySecurity.cs
- BrowserCapabilitiesFactory.cs
- SafeUserTokenHandle.cs
- ConfigXmlAttribute.cs
- NotifyInputEventArgs.cs
- UdpRetransmissionSettings.cs
- ActivityLocationReferenceEnvironment.cs
- BitmapPalettes.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- StyleHelper.cs
- Pen.cs
- CompilationAssemblyInstallComponent.cs
- NodeFunctions.cs
- GraphicsPathIterator.cs
- NativeMethods.cs
- MissingFieldException.cs
- BamlResourceDeserializer.cs
- SelfIssuedAuthProofToken.cs
- PartitionedDataSource.cs
- ByteKeyFrameCollection.cs
- RMEnrollmentPage1.cs
- TextControlDesigner.cs
- ConsumerConnectionPointCollection.cs
- cache.cs
- QuadraticBezierSegment.cs
- WindowsIdentity.cs
- RequestSecurityToken.cs
- ManipulationDelta.cs
- TextComposition.cs
- ListItemConverter.cs
- LinqDataSourceUpdateEventArgs.cs
- AppSettingsExpressionBuilder.cs
- OneOfElement.cs
- SafePEFileHandle.cs
- DurableTimerExtension.cs
- HostProtectionPermission.cs
- EdmError.cs
- DataKeyCollection.cs
- RoleGroup.cs
- SocketManager.cs
- WithParamAction.cs
- RightsManagementEncryptionTransform.cs
- TextFragmentEngine.cs
- ReliableChannelListener.cs
- ForeignConstraint.cs
- HtmlElementCollection.cs
- _Events.cs
- FileUpload.cs
- StringComparer.cs
- StagingAreaInputItem.cs
- UnsafeNativeMethods.cs
- HttpServerProtocol.cs
- WeakEventManager.cs
- PlainXmlWriter.cs
- AsyncStreamReader.cs
- CompilerCollection.cs
- ErrorFormatter.cs
- CreateDataSourceDialog.cs
- AVElementHelper.cs
- HtmlCalendarAdapter.cs
- ActivityLocationReferenceEnvironment.cs
- FacetChecker.cs
- UnmanagedMarshal.cs
- DataGridViewEditingControlShowingEventArgs.cs
- TextFormatterContext.cs
- SpeechEvent.cs
- Int64Storage.cs
- ImageClickEventArgs.cs