Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- CharEnumerator.cs
- ModifiableIteratorCollection.cs
- ConstantSlot.cs
- ContextMenuService.cs
- SymmetricKey.cs
- CompareInfo.cs
- MetadataPropertyvalue.cs
- LicenseProviderAttribute.cs
- SQLDecimal.cs
- FilterException.cs
- OptimizerPatterns.cs
- Inline.cs
- SectionXmlInfo.cs
- Activator.cs
- LocalBuilder.cs
- WindowsStartMenu.cs
- PageParserFilter.cs
- wmiprovider.cs
- CheckedPointers.cs
- IndexedGlyphRun.cs
- ValidationRuleCollection.cs
- EntityContainerAssociationSet.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ActivityUtilities.cs
- PerformanceCounterLib.cs
- BindingWorker.cs
- ToolStripDropDownItem.cs
- DefaultTextStore.cs
- DigestTraceRecordHelper.cs
- TableRow.cs
- RegularExpressionValidator.cs
- XPathExpr.cs
- LiteralControl.cs
- ConstantProjectedSlot.cs
- QuerySetOp.cs
- TreeViewHitTestInfo.cs
- FilterEventArgs.cs
- BasePropertyDescriptor.cs
- ISFTagAndGuidCache.cs
- OLEDB_Util.cs
- OleDbPropertySetGuid.cs
- mongolianshape.cs
- RuleSettings.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- LastQueryOperator.cs
- ChildrenQuery.cs
- EventLogWatcher.cs
- MD5HashHelper.cs
- DataSourceCache.cs
- WebSysDescriptionAttribute.cs
- SelectionUIService.cs
- OdbcTransaction.cs
- DispatcherHookEventArgs.cs
- TypeSource.cs
- MethodSignatureGenerator.cs
- SBCSCodePageEncoding.cs
- XhtmlTextWriter.cs
- GZipDecoder.cs
- SessionSwitchEventArgs.cs
- ImageMapEventArgs.cs
- EventlogProvider.cs
- ValidationEventArgs.cs
- XmlUnspecifiedAttribute.cs
- MailWriter.cs
- OracleConnectionString.cs
- SqlDataSourceCommandParser.cs
- AutomationPattern.cs
- ToolStripDesignerAvailabilityAttribute.cs
- UnknownBitmapDecoder.cs
- GrammarBuilderRuleRef.cs
- SqlInternalConnectionTds.cs
- GlobalItem.cs
- XPathNodeHelper.cs
- StaticResourceExtension.cs
- Utils.cs
- ScriptingJsonSerializationSection.cs
- DockPatternIdentifiers.cs
- XmlAttribute.cs
- EncodingNLS.cs
- GlyphCache.cs
- DbgUtil.cs
- InfiniteIntConverter.cs
- TransformationRules.cs
- TaskbarItemInfo.cs
- CommandID.cs
- UnsafeNativeMethods.cs
- Thread.cs
- XmlSchemaAnyAttribute.cs
- lengthconverter.cs
- RadioButton.cs
- ProtectedUri.cs
- CodeGenerator.cs
- OuterGlowBitmapEffect.cs
- Decorator.cs
- FontNamesConverter.cs
- ProjectionPruner.cs
- SerialReceived.cs
- BridgeDataReader.cs
- DefaultValueTypeConverter.cs
- ModuleBuilder.cs