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
- NodeLabelEditEvent.cs
- FacetEnabledSchemaElement.cs
- WebBaseEventKeyComparer.cs
- ZipIOLocalFileDataDescriptor.cs
- NegotiationTokenAuthenticator.cs
- FunctionCommandText.cs
- IdentityManager.cs
- OptimalTextSource.cs
- Win32SafeHandles.cs
- ImageKeyConverter.cs
- RightsManagementEncryptionTransform.cs
- ResXDataNode.cs
- PDBReader.cs
- ArrayConverter.cs
- DbParameterCollection.cs
- BrowserDefinitionCollection.cs
- HtmlInputSubmit.cs
- PerspectiveCamera.cs
- TextParaClient.cs
- Visual3D.cs
- GuidConverter.cs
- StdValidatorsAndConverters.cs
- ConnectionPoint.cs
- CodeRegionDirective.cs
- MeasureItemEvent.cs
- DataFormats.cs
- IItemProperties.cs
- TabControl.cs
- TableHeaderCell.cs
- AmbiguousMatchException.cs
- InteropAutomationProvider.cs
- FrameworkContextData.cs
- EdmToObjectNamespaceMap.cs
- InputLanguageEventArgs.cs
- IImplicitResourceProvider.cs
- MimeParameter.cs
- sqlnorm.cs
- Margins.cs
- ThrowHelper.cs
- Convert.cs
- ControlCollection.cs
- DoneReceivingAsyncResult.cs
- SslStream.cs
- securestring.cs
- Soap.cs
- SelectorItemAutomationPeer.cs
- PrinterResolution.cs
- SchemaType.cs
- EditorZone.cs
- HttpCookiesSection.cs
- PersianCalendar.cs
- JournalNavigationScope.cs
- Block.cs
- SByteConverter.cs
- HwndSourceParameters.cs
- ErrorFormatter.cs
- CodeRemoveEventStatement.cs
- AutoFocusStyle.xaml.cs
- DictionaryItemsCollection.cs
- BamlRecordHelper.cs
- XmlQueryType.cs
- ApplySecurityAndSendAsyncResult.cs
- Win32Native.cs
- DrawingAttributesDefaultValueFactory.cs
- NotificationContext.cs
- XmlBoundElement.cs
- DivideByZeroException.cs
- FactoryRecord.cs
- XmlSchemaCompilationSettings.cs
- HttpContextServiceHost.cs
- GeometryCollection.cs
- Clock.cs
- DbModificationClause.cs
- TemplatedAdorner.cs
- DescendentsWalkerBase.cs
- AssemblySettingAttributes.cs
- SingletonInstanceContextProvider.cs
- SemanticTag.cs
- XmlFormatMapping.cs
- XmlHierarchicalDataSourceView.cs
- AutomationPropertyInfo.cs
- QueryTask.cs
- CssClassPropertyAttribute.cs
- ServiceNameElement.cs
- HttpCapabilitiesBase.cs
- IDQuery.cs
- Win32PrintDialog.cs
- ListItemConverter.cs
- SoapExtensionImporter.cs
- TreeNodeBindingCollection.cs
- EllipticalNodeOperations.cs
- DataGridItem.cs
- DashStyle.cs
- CachedFontFamily.cs
- SmiConnection.cs
- _ListenerResponseStream.cs
- WorkerRequest.cs
- ToolStripCustomTypeDescriptor.cs
- COM2ExtendedBrowsingHandler.cs
- RegexRunner.cs