Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Int64Converter.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AvTraceDetails.cs
- ResourceReferenceKeyNotFoundException.cs
- FileLoadException.cs
- RadioButtonPopupAdapter.cs
- HtmlTableCell.cs
- Environment.cs
- CacheDependency.cs
- AttributeUsageAttribute.cs
- TraceUtility.cs
- HostedBindingBehavior.cs
- FullTextBreakpoint.cs
- DocumentPageViewAutomationPeer.cs
- DESCryptoServiceProvider.cs
- RegionIterator.cs
- XmlEncodedRawTextWriter.cs
- Set.cs
- SafeNativeMemoryHandle.cs
- ReferentialConstraint.cs
- SynchronizedDisposablePool.cs
- ApplicationInfo.cs
- RawStylusActions.cs
- ParsedRoute.cs
- MetadataSerializer.cs
- X509CertificateRecipientClientCredential.cs
- Rotation3DAnimation.cs
- SessionStateItemCollection.cs
- ModelTreeManager.cs
- FtpWebRequest.cs
- XsltArgumentList.cs
- JournalEntry.cs
- SaveFileDialog.cs
- QueryAsyncResult.cs
- VerticalAlignConverter.cs
- RotationValidation.cs
- _IPv4Address.cs
- SafeEventLogWriteHandle.cs
- CellConstantDomain.cs
- GlyphTypeface.cs
- XPathParser.cs
- CommandBinding.cs
- ManualResetEvent.cs
- ModuleElement.cs
- ListDataHelper.cs
- AnnotationComponentChooser.cs
- XmlSchemaValidator.cs
- CharUnicodeInfo.cs
- XmlILTrace.cs
- SortedDictionary.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Vector3dCollection.cs
- ControlBuilder.cs
- ToolStripItemDesigner.cs
- RequestFactory.cs
- HtmlInputControl.cs
- BamlTreeNode.cs
- ServiceBuildProvider.cs
- CollectionType.cs
- BitmapEffectInputConnector.cs
- NativeRecognizer.cs
- DataGridViewCellStateChangedEventArgs.cs
- DigitShape.cs
- CollectionTraceRecord.cs
- GridViewItemAutomationPeer.cs
- Boolean.cs
- autovalidator.cs
- SecureUICommand.cs
- ConstructorBuilder.cs
- ChainedAsyncResult.cs
- AsymmetricKeyExchangeFormatter.cs
- BrushValueSerializer.cs
- RegistryDataKey.cs
- MediaCommands.cs
- DataException.cs
- Debugger.cs
- ListBoxAutomationPeer.cs
- EntityModelBuildProvider.cs
- X509SubjectKeyIdentifierClause.cs
- CopyAction.cs
- ActivityCodeDomSerializer.cs
- DeflateEmulationStream.cs
- Operator.cs
- SqlDependency.cs
- SessionStateModule.cs
- QilReplaceVisitor.cs
- GroupByExpressionRewriter.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ViewLoader.cs
- UpdateCompiler.cs
- StackSpiller.Generated.cs
- bidPrivateBase.cs
- XmlChildNodes.cs
- Dispatcher.cs
- HuffModule.cs
- TextEvent.cs
- ThreadStaticAttribute.cs
- Globals.cs
- InvalidDataException.cs
- NameNode.cs
- CDSCollectionETWBCLProvider.cs
- WebResourceUtil.cs