Code:
/ FX-1434 / FX-1434 / 1.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
- dtdvalidator.cs
- AccessDataSource.cs
- EDesignUtil.cs
- ObjectRef.cs
- MissingManifestResourceException.cs
- ResolvedKeyFrameEntry.cs
- AttributeTableBuilder.cs
- HealthMonitoringSectionHelper.cs
- JsonServiceDocumentSerializer.cs
- InstanceKeyView.cs
- DynamicEntity.cs
- XmlSchemaInclude.cs
- BamlLocalizableResourceKey.cs
- Point4DValueSerializer.cs
- UnknownWrapper.cs
- DecimalAnimationUsingKeyFrames.cs
- SmtpDigestAuthenticationModule.cs
- TextParagraph.cs
- BaseTemplateParser.cs
- ProtocolsConfiguration.cs
- TargetInvocationException.cs
- DataGridLinkButton.cs
- ToolboxItemFilterAttribute.cs
- ModelUIElement3D.cs
- OdbcCommand.cs
- ImageUrlEditor.cs
- ActivityMarkupSerializationProvider.cs
- OutputCacheSection.cs
- PointHitTestParameters.cs
- XDeferredAxisSource.cs
- ConnectorEditor.cs
- WorkflowApplication.cs
- DataBoundControlAdapter.cs
- EdmRelationshipRoleAttribute.cs
- UnauthorizedAccessException.cs
- SByte.cs
- FileSystemInfo.cs
- HtmlShimManager.cs
- PrintDialog.cs
- BufferedReadStream.cs
- SynchronousReceiveBehavior.cs
- AttachmentCollection.cs
- BridgeDataRecord.cs
- SlotInfo.cs
- AccessedThroughPropertyAttribute.cs
- SamlNameIdentifierClaimResource.cs
- TriState.cs
- AuthorizationBehavior.cs
- MenuItemCollection.cs
- ComponentDispatcherThread.cs
- Parser.cs
- ControllableStoryboardAction.cs
- StaticSiteMapProvider.cs
- ThreadExceptionEvent.cs
- CodeAssignStatement.cs
- PeerInvitationResponse.cs
- ProviderUtil.cs
- MetadataUtilsSmi.cs
- WebPartCatalogAddVerb.cs
- CodeThrowExceptionStatement.cs
- XmlTextEncoder.cs
- Comparer.cs
- WebScriptServiceHostFactory.cs
- PrintPreviewControl.cs
- View.cs
- UriSectionData.cs
- basecomparevalidator.cs
- ConstraintCollection.cs
- WebResponse.cs
- EntityContainer.cs
- EventProvider.cs
- ISFClipboardData.cs
- ResourceFallbackManager.cs
- Column.cs
- HelpProvider.cs
- ButtonBaseAdapter.cs
- Int64.cs
- ManagementObjectSearcher.cs
- WindowsFormsDesignerOptionService.cs
- SpoolingTask.cs
- SystemIPAddressInformation.cs
- TimeBoundedCache.cs
- Html32TextWriter.cs
- AnchoredBlock.cs
- InvalidComObjectException.cs
- BindingContext.cs
- ConfigurationManagerHelper.cs
- DataSourceCache.cs
- XMLUtil.cs
- SmtpFailedRecipientException.cs
- SplitterDesigner.cs
- ByteAnimation.cs
- CustomErrorsSectionWrapper.cs
- PropertyValueChangedEvent.cs
- Focus.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TypeForwardedToAttribute.cs
- DependencyPropertyHelper.cs
- VerificationAttribute.cs
- CompilerInfo.cs