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
- odbcmetadatafactory.cs
- PropertyInformationCollection.cs
- VectorCollection.cs
- ProtocolsConfiguration.cs
- CookielessHelper.cs
- EntityDataSourceUtil.cs
- WebPartHelpVerb.cs
- CodePageUtils.cs
- DefaultHttpHandler.cs
- ProcessHost.cs
- OperationResponse.cs
- AnimationException.cs
- UniqueContractNameValidationBehavior.cs
- SafeHandles.cs
- AppDomainFactory.cs
- QueuePropertyVariants.cs
- DragEvent.cs
- Cursor.cs
- Models.cs
- ObjectListDataBindEventArgs.cs
- Publisher.cs
- WindowAutomationPeer.cs
- FilePrompt.cs
- TextTrailingWordEllipsis.cs
- DirectoryObjectSecurity.cs
- FormsAuthentication.cs
- XmlEventCache.cs
- BindingMemberInfo.cs
- PenThread.cs
- bindurihelper.cs
- OperandQuery.cs
- TextElementCollection.cs
- TabRenderer.cs
- MsmqHostedTransportManager.cs
- WorkflowInstanceExtensionManager.cs
- SmtpClient.cs
- Int64AnimationUsingKeyFrames.cs
- LostFocusEventManager.cs
- PropertyOrder.cs
- MimeMapping.cs
- DBCSCodePageEncoding.cs
- AncillaryOps.cs
- TransformCollection.cs
- IgnoreSection.cs
- CustomCategoryAttribute.cs
- HandleCollector.cs
- EditableTreeList.cs
- DataSourceGroupCollection.cs
- CharacterString.cs
- PolyLineSegmentFigureLogic.cs
- DetailsViewInsertEventArgs.cs
- CustomErrorCollection.cs
- ToolBarPanel.cs
- ComponentDispatcherThread.cs
- AssemblyUtil.cs
- ObjectSpanRewriter.cs
- KeyToListMap.cs
- UInt16Storage.cs
- SrgsElementFactoryCompiler.cs
- SaveFileDialog.cs
- Rect3DConverter.cs
- Column.cs
- HandlerBase.cs
- basenumberconverter.cs
- TrustManagerMoreInformation.cs
- FormatConvertedBitmap.cs
- EntityClassGenerator.cs
- SchemaImporter.cs
- CommandBindingCollection.cs
- BigInt.cs
- UnauthorizedAccessException.cs
- Span.cs
- SoapTypeAttribute.cs
- CellTreeNodeVisitors.cs
- COM2EnumConverter.cs
- CustomTypeDescriptor.cs
- ConfigurationPropertyCollection.cs
- FixedTextContainer.cs
- ModuleBuilderData.cs
- PropertyNames.cs
- CompilationSection.cs
- DecimalFormatter.cs
- BinaryCommonClasses.cs
- DistinctQueryOperator.cs
- DataSetUtil.cs
- TemplateBindingExtension.cs
- WindowInteropHelper.cs
- PropertyEmitterBase.cs
- TraceSection.cs
- UriSectionReader.cs
- ActiveXContainer.cs
- OuterGlowBitmapEffect.cs
- WizardStepBase.cs
- SelectionWordBreaker.cs
- DataGridViewDesigner.cs
- DataStreams.cs
- Native.cs
- SQLInt64.cs
- InputDevice.cs
- RawTextInputReport.cs