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
- XmlILCommand.cs
- PositiveTimeSpanValidatorAttribute.cs
- LingerOption.cs
- safelink.cs
- Selector.cs
- DirectionalLight.cs
- DataBoundControl.cs
- ToolStripGrip.cs
- BufferedStream.cs
- BitArray.cs
- XmlBoundElement.cs
- LocalizableResourceBuilder.cs
- ExportOptions.cs
- LocalizableResourceBuilder.cs
- UDPClient.cs
- StylusPointCollection.cs
- AdornerHitTestResult.cs
- ObjectParameterCollection.cs
- MarshalByRefObject.cs
- DirectoryRootQuery.cs
- MouseActionConverter.cs
- DBCSCodePageEncoding.cs
- InternalCache.cs
- EdmValidator.cs
- Int64AnimationUsingKeyFrames.cs
- XmlDownloadManager.cs
- XPathEmptyIterator.cs
- SerializationSectionGroup.cs
- UserNameServiceElement.cs
- OptimalBreakSession.cs
- BasicKeyConstraint.cs
- EventLogSession.cs
- UpdateTracker.cs
- NameValueConfigurationCollection.cs
- SecurityHelper.cs
- RadialGradientBrush.cs
- WebScriptServiceHost.cs
- BindingMAnagerBase.cs
- CellParagraph.cs
- EqualityComparer.cs
- RelationshipFixer.cs
- GetReadStreamResult.cs
- NativeMethods.cs
- AssemblyResolver.cs
- Rect3D.cs
- ModelVisual3D.cs
- parserscommon.cs
- ParallelTimeline.cs
- ScriptControlDescriptor.cs
- GridViewRowPresenterBase.cs
- DesignerHost.cs
- FormViewUpdatedEventArgs.cs
- LinkedList.cs
- InputBinding.cs
- FormatControl.cs
- CompositeCollection.cs
- MonikerUtility.cs
- UIElementParagraph.cs
- Span.cs
- TableStyle.cs
- BindingContext.cs
- keycontainerpermission.cs
- CollectionEditorDialog.cs
- IsolatedStorageFilePermission.cs
- PersonalizationState.cs
- CodeDirectoryCompiler.cs
- SafeHandle.cs
- ComboBox.cs
- RightsManagementPermission.cs
- MetadataItem_Static.cs
- RouteUrlExpressionBuilder.cs
- AccessDataSource.cs
- ContractTypeNameElement.cs
- EntityDataSourceConfigureObjectContext.cs
- StrokeNode.cs
- TaskExceptionHolder.cs
- AspCompat.cs
- CollectionViewProxy.cs
- CodeExpressionCollection.cs
- ViewCellRelation.cs
- TraceHelpers.cs
- SqlDelegatedTransaction.cs
- RegexRunner.cs
- RepeatBehaviorConverter.cs
- FactoryRecord.cs
- ConfigurationManagerHelperFactory.cs
- MenuItem.cs
- propertytag.cs
- SevenBitStream.cs
- ForceCopyBuildProvider.cs
- ScriptHandlerFactory.cs
- GeneralTransform.cs
- wgx_commands.cs
- DragStartedEventArgs.cs
- XmlWrappingReader.cs
- ExcludePathInfo.cs
- ObjectConverter.cs
- RootProfilePropertySettingsCollection.cs
- ContextMenuAutomationPeer.cs
- dtdvalidator.cs