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
- RadioButtonBaseAdapter.cs
- StylusLogic.cs
- BlockUIContainer.cs
- SqlCachedBuffer.cs
- CodeExporter.cs
- ClientReliableChannelBinder.cs
- SmtpFailedRecipientException.cs
- XmlILIndex.cs
- ReceiveContext.cs
- OutputCacheSettingsSection.cs
- MarkedHighlightComponent.cs
- ApplicationServicesHostFactory.cs
- XamlReader.cs
- DesignerOptionService.cs
- EndpointInstanceProvider.cs
- QueryOperationResponseOfT.cs
- Page.cs
- Control.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- CounterCreationData.cs
- RandomDelayQueuedSendsAsyncResult.cs
- FillRuleValidation.cs
- ApplyTemplatesAction.cs
- SqlProfileProvider.cs
- DataGridViewRowHeaderCell.cs
- ThreadInterruptedException.cs
- EllipticalNodeOperations.cs
- DesignerValidationSummaryAdapter.cs
- ItemsPanelTemplate.cs
- ToolStripItemCollection.cs
- StrongNameUtility.cs
- FontStyles.cs
- NativeWindow.cs
- Propagator.cs
- SafeRightsManagementHandle.cs
- ValidatingReaderNodeData.cs
- DefaultPropertyAttribute.cs
- HostingPreferredMapPath.cs
- WmfPlaceableFileHeader.cs
- CfgParser.cs
- GeneralTransform3DTo2D.cs
- XhtmlConformanceSection.cs
- WindowsButton.cs
- VisualState.cs
- MenuAdapter.cs
- EpmSyndicationContentDeSerializer.cs
- HandlerWithFactory.cs
- TdsParameterSetter.cs
- ModelItemExtensions.cs
- GroupStyle.cs
- FontUnitConverter.cs
- DataGridTextColumn.cs
- GroupByQueryOperator.cs
- XmlParserContext.cs
- BitmapEffectDrawingContextState.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- SaveFileDialog.cs
- ReferenceConverter.cs
- SimpleWorkerRequest.cs
- ListViewEditEventArgs.cs
- MemberInfoSerializationHolder.cs
- EntityRecordInfo.cs
- ApplicationDirectoryMembershipCondition.cs
- AssemblyLoader.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- AlignmentXValidation.cs
- LayoutEditorPart.cs
- FixedDSBuilder.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TriState.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- GetLastErrorDetailsRequest.cs
- DataColumnCollection.cs
- CurrentChangingEventManager.cs
- TypedDatasetGenerator.cs
- RadioButton.cs
- AsymmetricKeyExchangeFormatter.cs
- Drawing.cs
- DecimalAnimationBase.cs
- FlagsAttribute.cs
- WindowsImpersonationContext.cs
- ReadOnlyDataSource.cs
- CompilerInfo.cs
- JsonEncodingStreamWrapper.cs
- CommentEmitter.cs
- ConfigurationSectionGroup.cs
- DbBuffer.cs
- SemanticValue.cs
- SymbolUsageManager.cs
- RadioButtonAutomationPeer.cs
- TableChangeProcessor.cs
- EntityConnectionStringBuilder.cs
- EncoderExceptionFallback.cs
- SoapAttributes.cs
- RepeaterCommandEventArgs.cs
- LineBreak.cs
- TextElementEditingBehaviorAttribute.cs
- NameObjectCollectionBase.cs
- BufferedOutputStream.cs
- InternalTransaction.cs