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
- CodeMemberMethod.cs
- ProxyWebPartConnectionCollection.cs
- UIAgentMonitorHandle.cs
- QueryReaderSettings.cs
- CategoryGridEntry.cs
- WindowsSolidBrush.cs
- ApplicationServiceManager.cs
- WebPartTracker.cs
- GetIndexBinder.cs
- FormClosedEvent.cs
- ToolboxComponentsCreatingEventArgs.cs
- LayoutDump.cs
- ElementHostPropertyMap.cs
- MobileResource.cs
- __FastResourceComparer.cs
- WebPartZoneBaseDesigner.cs
- AVElementHelper.cs
- SymmetricCryptoHandle.cs
- DynamicILGenerator.cs
- KnownTypesProvider.cs
- WindowsClaimSet.cs
- BindableTemplateBuilder.cs
- ContentFilePart.cs
- CodeCompileUnit.cs
- SqlConnectionManager.cs
- PeerTransportElement.cs
- PathNode.cs
- SafeCoTaskMem.cs
- XmlAggregates.cs
- ConnectionPointGlyph.cs
- followingsibling.cs
- basemetadatamappingvisitor.cs
- DropSource.cs
- AssemblyCollection.cs
- SqlFacetAttribute.cs
- _NetRes.cs
- ResourceIDHelper.cs
- NativeWindow.cs
- TreeViewTemplateSelector.cs
- DataExpression.cs
- MailMessageEventArgs.cs
- LocalizableAttribute.cs
- EllipseGeometry.cs
- DocumentReferenceCollection.cs
- DispatcherSynchronizationContext.cs
- DataGridViewTextBoxCell.cs
- DesignerActionUI.cs
- HostProtectionException.cs
- BamlRecordReader.cs
- XmlSchemaAttributeGroup.cs
- GiveFeedbackEvent.cs
- DocumentPageViewAutomationPeer.cs
- NativeMethods.cs
- DecimalConverter.cs
- BooleanFacetDescriptionElement.cs
- RepeatEnumerable.cs
- XmlUtf8RawTextWriter.cs
- RuntimeResourceSet.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- ListComponentEditorPage.cs
- WebPartDisplayModeEventArgs.cs
- ClrPerspective.cs
- XmlSerializerAssemblyAttribute.cs
- ActivityScheduledQuery.cs
- CodeEventReferenceExpression.cs
- XmlDocument.cs
- ContextProperty.cs
- validation.cs
- SortExpressionBuilder.cs
- tibetanshape.cs
- TagMapCollection.cs
- PropertyPathWorker.cs
- DisplayClaim.cs
- StylusPointProperties.cs
- SortKey.cs
- TransactionContextValidator.cs
- MyContact.cs
- DelegateHelpers.cs
- XmlResolver.cs
- AspCompat.cs
- RelatedCurrencyManager.cs
- ContextMenuStripGroup.cs
- ISAPIRuntime.cs
- HtmlUtf8RawTextWriter.cs
- FontNamesConverter.cs
- ToggleButtonAutomationPeer.cs
- EntryPointNotFoundException.cs
- ToolStripRenderer.cs
- SecurityDescriptor.cs
- SqlIdentifier.cs
- HttpModuleCollection.cs
- TagNameToTypeMapper.cs
- ProbeMatchesMessage11.cs
- TextDecorationUnitValidation.cs
- MailFileEditor.cs
- XmlSchemaComplexContentExtension.cs
- Renderer.cs
- DBSchemaTable.cs
- MemoryPressure.cs
- HtmlInputButton.cs