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
- XmlSchemaComplexContentRestriction.cs
- TemplateInstanceAttribute.cs
- TypedElement.cs
- ErrorInfoXmlDocument.cs
- MergablePropertyAttribute.cs
- Mapping.cs
- XsdDateTime.cs
- ShaderRenderModeValidation.cs
- Setter.cs
- MouseActionConverter.cs
- hresults.cs
- XmlSerializableWriter.cs
- DataViewSetting.cs
- Dynamic.cs
- TargetParameterCountException.cs
- CodeRegionDirective.cs
- DataGridColumnCollection.cs
- ControlType.cs
- StylusTouchDevice.cs
- HttpApplication.cs
- ModuleElement.cs
- SafeLocalAllocation.cs
- MetadataArtifactLoaderCompositeResource.cs
- StaticExtensionConverter.cs
- WindowShowOrOpenTracker.cs
- RectangleGeometry.cs
- ComboBoxRenderer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SelectionWordBreaker.cs
- SimpleWebHandlerParser.cs
- EtwTrace.cs
- DetailsViewInsertedEventArgs.cs
- Knowncolors.cs
- SecurityContext.cs
- RemoteCryptoRsaServiceProvider.cs
- IntSecurity.cs
- FormViewPageEventArgs.cs
- InputScopeAttribute.cs
- ExecutionScope.cs
- HtmlInputPassword.cs
- RequestUriProcessor.cs
- DmlSqlGenerator.cs
- DataColumnMapping.cs
- DataGrid.cs
- SByte.cs
- HealthMonitoringSectionHelper.cs
- EastAsianLunisolarCalendar.cs
- BaseValidator.cs
- DataContext.cs
- SystemIPAddressInformation.cs
- Animatable.cs
- ParenthesizePropertyNameAttribute.cs
- HitTestDrawingContextWalker.cs
- PriorityBinding.cs
- ToolStripDropDown.cs
- precedingquery.cs
- ExpressionBuilder.cs
- TimeSpanConverter.cs
- SecurityTraceRecordHelper.cs
- TextDpi.cs
- XmlSchemaParticle.cs
- HttpConfigurationContext.cs
- UIElement.cs
- AttributeUsageAttribute.cs
- BooleanProjectedSlot.cs
- SecureStringHasher.cs
- BindableTemplateBuilder.cs
- MarkupProperty.cs
- ResourceSetExpression.cs
- ParseChildrenAsPropertiesAttribute.cs
- CompilerCollection.cs
- SubMenuStyle.cs
- BamlReader.cs
- QilInvokeLateBound.cs
- SiteMap.cs
- SByte.cs
- DataSourceXmlTextReader.cs
- BitmapCache.cs
- FormsAuthenticationConfiguration.cs
- UInt64.cs
- ObjectAnimationUsingKeyFrames.cs
- XmlSchemaComplexType.cs
- EditingMode.cs
- DrawingCollection.cs
- BreakRecordTable.cs
- ColorInterpolationModeValidation.cs
- RealProxy.cs
- ViewSimplifier.cs
- ElapsedEventArgs.cs
- MultiTrigger.cs
- UInt16.cs
- JsonByteArrayDataContract.cs
- TextCompositionEventArgs.cs
- CustomCategoryAttribute.cs
- SerializationFieldInfo.cs
- XslAst.cs
- TraceLog.cs
- ConfigurationErrorsException.cs
- TagMapCollection.cs
- JapaneseCalendar.cs