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
- CharacterHit.cs
- DataServiceStreamProviderWrapper.cs
- ExpandedWrapper.cs
- FontCacheUtil.cs
- GeneralTransform2DTo3D.cs
- OrderingExpression.cs
- TrackingProfileSerializer.cs
- TemplateApplicationHelper.cs
- FlowDocumentScrollViewer.cs
- ConfigDefinitionUpdates.cs
- SchemaEntity.cs
- ScrollableControl.cs
- AtomParser.cs
- TagPrefixInfo.cs
- XmlSubtreeReader.cs
- ToolStrip.cs
- COSERVERINFO.cs
- FormViewUpdatedEventArgs.cs
- wgx_commands.cs
- ContractSearchPattern.cs
- IIS7ConfigurationLoader.cs
- EventLogException.cs
- DataControlFieldTypeEditor.cs
- RecommendedAsConfigurableAttribute.cs
- SystemKeyConverter.cs
- NullableConverter.cs
- StandardCommandToolStripMenuItem.cs
- CookielessData.cs
- XmlWrappingWriter.cs
- ArgumentOutOfRangeException.cs
- ExcCanonicalXml.cs
- QueryServiceConfigHandle.cs
- TableRow.cs
- DbSourceCommand.cs
- CqlGenerator.cs
- GrammarBuilder.cs
- FragmentNavigationEventArgs.cs
- IdentifierElement.cs
- LineServices.cs
- Effect.cs
- GridSplitterAutomationPeer.cs
- ExpressionBindingsDialog.cs
- RegionInfo.cs
- JobDuplex.cs
- ViewValidator.cs
- FixedSOMLineCollection.cs
- AnnotationAuthorChangedEventArgs.cs
- XsltLibrary.cs
- XmlBinaryReaderSession.cs
- ClientSideProviderDescription.cs
- COM2FontConverter.cs
- CompositeDataBoundControl.cs
- TransformDescriptor.cs
- RegionData.cs
- SqlDependencyListener.cs
- EntityDesignerUtils.cs
- TagElement.cs
- mactripleDES.cs
- DataGridViewComponentPropertyGridSite.cs
- FunctionNode.cs
- HttpApplication.cs
- ToolStripContentPanel.cs
- DesignerTransaction.cs
- ListViewItem.cs
- DragCompletedEventArgs.cs
- ProjectionAnalyzer.cs
- AppDomain.cs
- OneOf.cs
- ShaderRenderModeValidation.cs
- AtomMaterializer.cs
- SqlBulkCopy.cs
- SystemIPGlobalStatistics.cs
- WindowsGraphicsWrapper.cs
- VisualBasicHelper.cs
- HttpRuntime.cs
- ObjectPersistData.cs
- PanelContainerDesigner.cs
- ChtmlSelectionListAdapter.cs
- LocalizableResourceBuilder.cs
- XPathQilFactory.cs
- TransactionManagerProxy.cs
- XmlNodeList.cs
- ObjectItemCachedAssemblyLoader.cs
- StateDesigner.TransitionInfo.cs
- DbSource.cs
- SequenceDesignerAccessibleObject.cs
- CalloutQueueItem.cs
- ListViewInsertionMark.cs
- RealizedColumnsBlock.cs
- LinearGradientBrush.cs
- DesigntimeLicenseContext.cs
- LogicalExpr.cs
- TraceHandlerErrorFormatter.cs
- ItemType.cs
- ManagementEventWatcher.cs
- ClipboardData.cs
- SQLResource.cs
- safesecurityhelperavalon.cs
- LayoutUtils.cs
- ProfilePropertySettings.cs