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
- OpacityConverter.cs
- TextServicesLoader.cs
- RSAOAEPKeyExchangeDeformatter.cs
- KeyValueSerializer.cs
- CorrelationManager.cs
- ValidationResult.cs
- DataControlFieldCollection.cs
- ContentElement.cs
- ConsumerConnectionPoint.cs
- UidPropertyAttribute.cs
- FormatVersion.cs
- SmiContext.cs
- MD5CryptoServiceProvider.cs
- WebEventCodes.cs
- CodeDirectiveCollection.cs
- ProvidersHelper.cs
- DataGridViewComboBoxEditingControl.cs
- MetadataArtifactLoader.cs
- translator.cs
- IgnoreSectionHandler.cs
- SystemUnicastIPAddressInformation.cs
- HttpRuntimeSection.cs
- RepeaterItemEventArgs.cs
- VisualStateGroup.cs
- ProjectionCamera.cs
- TrailingSpaceComparer.cs
- SqlVersion.cs
- DataBindingExpressionBuilder.cs
- CalloutQueueItem.cs
- DataGridColumnsPage.cs
- ConnectionsZone.cs
- BoolExpr.cs
- PassportAuthentication.cs
- ValidatingCollection.cs
- EncoderFallback.cs
- SystemInfo.cs
- TrackingServices.cs
- ObjectSpanRewriter.cs
- CodeTryCatchFinallyStatement.cs
- Int16AnimationUsingKeyFrames.cs
- EntityViewGenerationAttribute.cs
- CurrencyManager.cs
- ResourceReferenceKeyNotFoundException.cs
- ContentIterators.cs
- OleDbRowUpdatingEvent.cs
- UnsafeNativeMethods.cs
- TextCollapsingProperties.cs
- EncryptedXml.cs
- Timeline.cs
- ElapsedEventArgs.cs
- ContentAlignmentEditor.cs
- DocumentPageHost.cs
- DataGridViewLinkColumn.cs
- PathFigureCollection.cs
- RegexBoyerMoore.cs
- WebPartZoneBaseDesigner.cs
- XPathItem.cs
- HttpProfileGroupBase.cs
- ShaderEffect.cs
- UTF7Encoding.cs
- RoleGroup.cs
- DataContract.cs
- ToolboxItemLoader.cs
- TemplateBindingExpression.cs
- QueryResultOp.cs
- AttributeProviderAttribute.cs
- RegexStringValidator.cs
- CultureMapper.cs
- DataGridViewColumnCollection.cs
- EncodingNLS.cs
- ToolStripItemGlyph.cs
- XhtmlConformanceSection.cs
- ObjectPropertyMapping.cs
- IisHelper.cs
- HttpModulesSection.cs
- FileUpload.cs
- updateconfighost.cs
- WebPartConnectionCollection.cs
- FontDialog.cs
- DropTarget.cs
- CheckBoxRenderer.cs
- CompilerResults.cs
- SchemaManager.cs
- TrackingServices.cs
- InfoCardSymmetricAlgorithm.cs
- HttpException.cs
- WebPartsPersonalization.cs
- HelpEvent.cs
- SrgsRulesCollection.cs
- ServerValidateEventArgs.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ComponentChangedEvent.cs
- ValidatingReaderNodeData.cs
- TextServicesLoader.cs
- PropertyMetadata.cs
- DataRowChangeEvent.cs
- WebPartZoneBase.cs
- ProviderUtil.cs
- SqlCommandSet.cs
- FormViewDeletedEventArgs.cs