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
- _AuthenticationState.cs
- SqlDataSourceConfigureFilterForm.cs
- UIPropertyMetadata.cs
- RuleAttributes.cs
- ProviderConnectionPoint.cs
- Utils.cs
- DesignerLoader.cs
- SystemMulticastIPAddressInformation.cs
- CookieProtection.cs
- RelationshipFixer.cs
- AssemblyAttributesGoHere.cs
- ObjectConverter.cs
- ExtenderControl.cs
- DataSourceControlBuilder.cs
- Table.cs
- ModelFunctionTypeElement.cs
- Quaternion.cs
- WebHttpBehavior.cs
- HandlerBase.cs
- Pair.cs
- CustomErrorsSection.cs
- PathFigureCollectionValueSerializer.cs
- XmlSchemaException.cs
- VideoDrawing.cs
- HttpBufferlessInputStream.cs
- PropertyGeneratedEventArgs.cs
- PropertyNames.cs
- HitTestWithGeometryDrawingContextWalker.cs
- X509Certificate2.cs
- PersonalizationProvider.cs
- Int32Rect.cs
- BamlRecords.cs
- BaseParaClient.cs
- TypeForwardedToAttribute.cs
- TcpStreams.cs
- WindowsStatusBar.cs
- ButtonStandardAdapter.cs
- SoapTransportImporter.cs
- ApplicationServicesHostFactory.cs
- OdbcConnectionFactory.cs
- WindowsComboBox.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Effect.cs
- XmlDataProvider.cs
- DataGridViewTopLeftHeaderCell.cs
- PathNode.cs
- PageBuildProvider.cs
- MetadataItemCollectionFactory.cs
- PrincipalPermission.cs
- bindurihelper.cs
- CombinedTcpChannel.cs
- DataKey.cs
- Activity.cs
- FieldAccessException.cs
- PlatformCulture.cs
- Stylesheet.cs
- AutomationPropertyInfo.cs
- PrintPreviewGraphics.cs
- CountAggregationOperator.cs
- OrderedDictionaryStateHelper.cs
- QuestionEventArgs.cs
- _PooledStream.cs
- TextViewDesigner.cs
- ObjectConverter.cs
- MediaContext.cs
- DetailsViewDeletedEventArgs.cs
- InternalConfigRoot.cs
- LinqDataView.cs
- CommonXSendMessage.cs
- ConnectionConsumerAttribute.cs
- CalendarItem.cs
- _ProxyChain.cs
- MenuAdapter.cs
- TypeBrowser.xaml.cs
- QualifiedId.cs
- _AuthenticationState.cs
- ISAPIWorkerRequest.cs
- TextBoxLine.cs
- BitmapFrameDecode.cs
- InvalidDataException.cs
- XmlException.cs
- mil_commands.cs
- InlinedAggregationOperatorEnumerator.cs
- BaseAppDomainProtocolHandler.cs
- SmiEventSink_Default.cs
- ContractUtils.cs
- ProfilePropertySettings.cs
- ClientSettingsSection.cs
- ExpandoClass.cs
- DetailsViewPagerRow.cs
- PagerSettings.cs
- SoapHelper.cs
- TypeToArgumentTypeConverter.cs
- SqlHelper.cs
- thaishape.cs
- Directory.cs
- InteropBitmapSource.cs
- StickyNoteHelper.cs
- FileUpload.cs
- WindowsToolbarAsMenu.cs