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
- NameValueSectionHandler.cs
- TypeListConverter.cs
- CodeTypeDeclaration.cs
- SqlRecordBuffer.cs
- ValidationManager.cs
- SQLDateTime.cs
- ErrorStyle.cs
- SqlDataRecord.cs
- ReferencedCategoriesDocument.cs
- WebPartZone.cs
- ExpressionPrefixAttribute.cs
- SqlExpressionNullability.cs
- DataObjectCopyingEventArgs.cs
- Page.cs
- ObjectKeyFrameCollection.cs
- oledbconnectionstring.cs
- CodeMethodReturnStatement.cs
- XPathPatternParser.cs
- InstanceNotReadyException.cs
- _SingleItemRequestCache.cs
- sqlstateclientmanager.cs
- Journal.cs
- TypeUnloadedException.cs
- PassportIdentity.cs
- DataGridViewAdvancedBorderStyle.cs
- DbProviderManifest.cs
- LogicalExpr.cs
- DataTableMappingCollection.cs
- DateTimeConverter.cs
- InputBinding.cs
- DmlSqlGenerator.cs
- TextComposition.cs
- SizeAnimationUsingKeyFrames.cs
- ReaderOutput.cs
- HttpGetProtocolReflector.cs
- AssemblyCache.cs
- GeometryHitTestResult.cs
- RemoteWebConfigurationHostStream.cs
- Descriptor.cs
- SqlNotificationEventArgs.cs
- ApplicationActivator.cs
- Latin1Encoding.cs
- CompilationUtil.cs
- CriticalFinalizerObject.cs
- HandlerMappingMemo.cs
- SafeSystemMetrics.cs
- Utils.cs
- Image.cs
- BoundPropertyEntry.cs
- ConsumerConnectionPoint.cs
- DesignerActionItem.cs
- TailCallAnalyzer.cs
- SQLGuid.cs
- SHA1.cs
- HttpApplication.cs
- WebPartEditorApplyVerb.cs
- RadioButtonRenderer.cs
- RubberbandSelector.cs
- MouseBinding.cs
- PropertyGridDesigner.cs
- RootBrowserWindow.cs
- BindingValueChangedEventArgs.cs
- ViewGenResults.cs
- ResourceManagerWrapper.cs
- EncodingDataItem.cs
- SQLStringStorage.cs
- StylusTip.cs
- LocalizationComments.cs
- DataGridRelationshipRow.cs
- BulletedListEventArgs.cs
- MessageSmuggler.cs
- ListBindableAttribute.cs
- ReflectionUtil.cs
- ReadOnlyAttribute.cs
- TemplateLookupAction.cs
- SpellCheck.cs
- ObjectStateManager.cs
- RSAProtectedConfigurationProvider.cs
- RectangleHotSpot.cs
- ObjectDataSource.cs
- Registry.cs
- BuildManagerHost.cs
- Win32SafeHandles.cs
- UpdateRecord.cs
- ObjectHandle.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- HMACRIPEMD160.cs
- NativeMethodsCLR.cs
- Content.cs
- TextTreeTextNode.cs
- WorkflowInstanceTerminatedRecord.cs
- BrowserCapabilitiesCompiler.cs
- XPathDocumentBuilder.cs
- Propagator.cs
- BooleanExpr.cs
- SR.cs
- ClientScriptManager.cs
- OutArgument.cs
- TableRow.cs
- XmlSerializerFactory.cs