Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Int32Converter.cs / 1 / Int32Converter.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 Int32Converter : BaseNumberConverter { ///Provides a type converter to convert 32-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(Int32); } } ////// Convert the given value to a string using the given radix /// internal override object FromString(string value, int radix) { return Convert.ToInt32(value, radix); } ////// Convert the given value to a string using the given formatInfo /// internal override object FromString(string value, NumberFormatInfo formatInfo) { return Int32.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 Int32.Parse(value, culture); } ////// Convert the given value from a string using the given formatInfo /// internal override string ToString(object value, NumberFormatInfo formatInfo) { return ((Int32)value).ToString("G", formatInfo); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _AcceptOverlappedAsyncResult.cs
- EraserBehavior.cs
- OracleLob.cs
- RectConverter.cs
- DeclarativeCatalogPartDesigner.cs
- PrintPageEvent.cs
- ViewCellSlot.cs
- Knowncolors.cs
- PrintingPermissionAttribute.cs
- ViewGenResults.cs
- DocumentsTrace.cs
- RuleProcessor.cs
- LiteralSubsegment.cs
- PropertyEmitter.cs
- OleDbConnectionFactory.cs
- TraceListener.cs
- EditBehavior.cs
- ErrorStyle.cs
- MenuBindingsEditor.cs
- SqlRemoveConstantOrderBy.cs
- CollectionChangedEventManager.cs
- SchemaDeclBase.cs
- XmlILConstructAnalyzer.cs
- WindowsAltTab.cs
- IgnoreFlushAndCloseStream.cs
- SchemeSettingElementCollection.cs
- CaseStatementSlot.cs
- ExtendedPropertiesHandler.cs
- FontDifferentiator.cs
- ProgressChangedEventArgs.cs
- basecomparevalidator.cs
- RecordManager.cs
- TagNameToTypeMapper.cs
- TransformerInfoCollection.cs
- Renderer.cs
- TextServicesCompartment.cs
- Win32Exception.cs
- SymbolType.cs
- TextRangeEdit.cs
- TabRenderer.cs
- MulticastOption.cs
- DispatcherBuilder.cs
- ProviderConnectionPoint.cs
- DiagnosticsConfigurationHandler.cs
- NativeActivityAbortContext.cs
- TrackBarRenderer.cs
- _BufferOffsetSize.cs
- OleDbException.cs
- coordinatorfactory.cs
- BitFlagsGenerator.cs
- ClientScriptManager.cs
- ImageIndexConverter.cs
- XmlEncApr2001.cs
- ToolStripComboBox.cs
- DataGridRow.cs
- DeviceSpecificChoice.cs
- SerializationObjectManager.cs
- AsyncCompletedEventArgs.cs
- ClaimSet.cs
- FixedSOMTableRow.cs
- XsdCachingReader.cs
- InstancePersistenceCommand.cs
- PasswordTextContainer.cs
- MenuItemStyle.cs
- ILGen.cs
- RelatedEnd.cs
- ListView.cs
- InvalidWMPVersionException.cs
- DataTableMapping.cs
- Transform3D.cs
- WebScriptServiceHostFactory.cs
- CellPartitioner.cs
- DataServices.cs
- ArrayListCollectionBase.cs
- KeyConverter.cs
- WebPartDisplayModeCollection.cs
- ListenerPerfCounters.cs
- ToolStripRendererSwitcher.cs
- CodeMethodReturnStatement.cs
- WebPartRestoreVerb.cs
- HealthMonitoringSectionHelper.cs
- TextContainerHelper.cs
- PageRequestManager.cs
- CompositeFontInfo.cs
- OdbcConnection.cs
- XmlWrappingReader.cs
- CustomAttribute.cs
- _SslSessionsCache.cs
- FlowPosition.cs
- ImageConverter.cs
- KeyGesture.cs
- EncoderParameter.cs
- DateTimeFormatInfoScanner.cs
- util.cs
- DeclarativeCatalogPart.cs
- ReceiveActivityDesignerTheme.cs
- AnonymousIdentificationModule.cs
- HttpHandlerActionCollection.cs
- XamlTypeWithExplicitNamespace.cs
- BasePattern.cs