Code:
/ FX-1434 / FX-1434 / 1.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
- PeerObject.cs
- PropertyPathConverter.cs
- MenuBase.cs
- CatalogZoneBase.cs
- Collection.cs
- BinaryMessageEncoder.cs
- DiscoveryInnerClientAdhocCD1.cs
- DataTableReader.cs
- _RequestCacheProtocol.cs
- EntityDataSourceSelectingEventArgs.cs
- CanonicalizationDriver.cs
- FlowLayoutSettings.cs
- XmlSchemaSimpleContentRestriction.cs
- ListViewItem.cs
- EditorBrowsableAttribute.cs
- CurrencyWrapper.cs
- DataTableExtensions.cs
- ParameterToken.cs
- CommentAction.cs
- RelativeSource.cs
- ContentType.cs
- TableItemPatternIdentifiers.cs
- MenuItemBinding.cs
- InputLangChangeRequestEvent.cs
- DispatchWrapper.cs
- OleDbRowUpdatedEvent.cs
- HttpRequestTraceRecord.cs
- DBCSCodePageEncoding.cs
- WSFederationHttpBinding.cs
- StateBag.cs
- BamlRecordWriter.cs
- SerializationInfoEnumerator.cs
- IQueryable.cs
- LightweightCodeGenerator.cs
- EventLogEntry.cs
- PieceDirectory.cs
- JoinQueryOperator.cs
- PkcsUtils.cs
- MultiSelector.cs
- SpecialFolderEnumConverter.cs
- FlowDocumentPage.cs
- WindowsListViewGroup.cs
- XmlAnyElementAttributes.cs
- TextServicesCompartment.cs
- PartialCachingAttribute.cs
- TextSelectionHighlightLayer.cs
- SafeHGlobalHandleCritical.cs
- FunctionQuery.cs
- ManagedWndProcTracker.cs
- KeyValueSerializer.cs
- ColorDialog.cs
- ThreadAbortException.cs
- BamlResourceSerializer.cs
- NotConverter.cs
- OleCmdHelper.cs
- BitmapEncoder.cs
- Rect3DValueSerializer.cs
- ArrayConverter.cs
- EndpointIdentity.cs
- SerialPort.cs
- HandlerBase.cs
- HtmlInputCheckBox.cs
- CurrentTimeZone.cs
- CopyOnWriteList.cs
- TypeSystem.cs
- XmlSchemaDocumentation.cs
- RevocationPoint.cs
- XmlMapping.cs
- X509SecurityToken.cs
- WorkflowExecutor.cs
- ProviderUtil.cs
- SHA1Managed.cs
- CngAlgorithmGroup.cs
- XmlObjectSerializerReadContext.cs
- datacache.cs
- ValidationHelpers.cs
- XmlWellformedWriter.cs
- ReflectTypeDescriptionProvider.cs
- XmlArrayAttribute.cs
- DrawingContextDrawingContextWalker.cs
- BuildProvider.cs
- ContentValidator.cs
- PageFunction.cs
- StorageMappingItemCollection.cs
- PropertyToken.cs
- XComponentModel.cs
- ResourceDisplayNameAttribute.cs
- XmlBinaryWriterSession.cs
- AnnotationMap.cs
- JoinElimination.cs
- Vector.cs
- TemplateKey.cs
- GroupItem.cs
- ToolBarTray.cs
- SafeNativeHandle.cs
- ActiveXHelper.cs
- QueryCacheManager.cs
- WorkflowDesignerMessageFilter.cs
- GradientStop.cs
- PeerChannelFactory.cs