Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / UInt32Converter.cs / 1 / UInt32Converter.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 UInt32Converter : BaseNumberConverter { ///Provides a type converter to convert 32-bit unsigned 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(UInt32); } } ////// Convert the given value to a string using the given radix /// internal override object FromString(string value, int radix) { return Convert.ToUInt32(value, radix); } ////// Convert the given value to a string using the given formatInfo /// internal override object FromString(string value, NumberFormatInfo formatInfo) { return UInt32.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 UInt32.Parse(value, culture); } ////// Convert the given value from a string using the given formatInfo /// internal override string ToString(object value, NumberFormatInfo formatInfo) { return ((UInt32)value).ToString("G", formatInfo); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebBrowser.cs
- GifBitmapDecoder.cs
- WindowsStatusBar.cs
- HttpModulesSection.cs
- ContentElement.cs
- SchemaMerger.cs
- Parameter.cs
- SubstitutionList.cs
- Win32KeyboardDevice.cs
- TypeSource.cs
- ExecutedRoutedEventArgs.cs
- ErrorWebPart.cs
- BridgeDataRecord.cs
- RectangleGeometry.cs
- Bezier.cs
- XmlQueryType.cs
- StructuredTypeInfo.cs
- Color.cs
- ReadOnlyPropertyMetadata.cs
- namescope.cs
- ToolStripDropTargetManager.cs
- GenericRootAutomationPeer.cs
- FtpWebRequest.cs
- XamlToRtfParser.cs
- DmlSqlGenerator.cs
- CompilationLock.cs
- NameHandler.cs
- RegistrationServices.cs
- SyndicationPerson.cs
- RowUpdatingEventArgs.cs
- Rect.cs
- LinqDataSourceContextData.cs
- XmlConvert.cs
- RunInstallerAttribute.cs
- httpapplicationstate.cs
- ArraySegment.cs
- DataSourceControlBuilder.cs
- InvokePatternIdentifiers.cs
- iisPickupDirectory.cs
- ObjectSet.cs
- MultipleViewPattern.cs
- DropShadowEffect.cs
- Timer.cs
- PopOutPanel.cs
- DataGridHeaderBorder.cs
- RenamedEventArgs.cs
- SystemKeyConverter.cs
- QilIterator.cs
- SelectedGridItemChangedEvent.cs
- UnsafeNativeMethods.cs
- TypeCacheManager.cs
- HMACRIPEMD160.cs
- BuildManagerHost.cs
- PersistChildrenAttribute.cs
- _SingleItemRequestCache.cs
- SafeSystemMetrics.cs
- HttpClientChannel.cs
- FixedSOMPage.cs
- DateTimeSerializationSection.cs
- CorePropertiesFilter.cs
- Serializer.cs
- ProcessModelSection.cs
- ForwardPositionQuery.cs
- SqlComparer.cs
- SqlRetyper.cs
- AndCondition.cs
- DispatcherOperation.cs
- HealthMonitoringSection.cs
- DataConnectionHelper.cs
- Material.cs
- ByteConverter.cs
- ConfigurationManager.cs
- Registry.cs
- ColorInterpolationModeValidation.cs
- XmlDataSourceView.cs
- CounterSetInstance.cs
- PanelStyle.cs
- FileDialogCustomPlaces.cs
- MimeBasePart.cs
- XmlC14NWriter.cs
- CroppedBitmap.cs
- BrushValueSerializer.cs
- CompareValidator.cs
- TableLayoutSettings.cs
- SafeArrayTypeMismatchException.cs
- ClaimComparer.cs
- GridViewCancelEditEventArgs.cs
- C14NUtil.cs
- LocatorManager.cs
- ReturnValue.cs
- DataControlCommands.cs
- SocketInformation.cs
- DataGridCaption.cs
- DataGridToolTip.cs
- ImageListStreamer.cs
- TextureBrush.cs
- ExclusiveCanonicalizationTransform.cs
- DataSet.cs
- XhtmlBasicImageAdapter.cs
- Highlights.cs