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
- WorkflowInvoker.cs
- ContainerParaClient.cs
- CompensatableTransactionScopeActivity.cs
- Logging.cs
- DynamicDataRoute.cs
- CodeTypeReference.cs
- Input.cs
- TextElement.cs
- ObjectAssociationEndMapping.cs
- IntegrationExceptionEventArgs.cs
- Compensation.cs
- TextTreeRootNode.cs
- VersionedStreamOwner.cs
- CollectionViewSource.cs
- TimeSpanValidator.cs
- ListViewUpdateEventArgs.cs
- SupportsPreviewControlAttribute.cs
- Transform3DGroup.cs
- ElementAtQueryOperator.cs
- ExtensionsSection.cs
- TreeViewDesigner.cs
- PrintPreviewGraphics.cs
- PlatformNotSupportedException.cs
- initElementDictionary.cs
- ListViewTableCell.cs
- BitmapEffectGroup.cs
- RoleService.cs
- CustomAssemblyResolver.cs
- GridSplitter.cs
- WorkflowApplicationCompletedEventArgs.cs
- ListenDesigner.cs
- LinqDataSourceContextEventArgs.cs
- SessionStateContainer.cs
- DataControlImageButton.cs
- InvalidAsynchronousStateException.cs
- InputReferenceExpression.cs
- ProvidePropertyAttribute.cs
- TableCellAutomationPeer.cs
- ViewPort3D.cs
- FixedStringLookup.cs
- BinaryObjectInfo.cs
- TextSimpleMarkerProperties.cs
- SimpleBitVector32.cs
- CaseKeyBox.xaml.cs
- SessionIDManager.cs
- NotifyInputEventArgs.cs
- LoginCancelEventArgs.cs
- PriorityBindingExpression.cs
- Switch.cs
- DbConnectionStringBuilder.cs
- Ref.cs
- Region.cs
- SizeAnimationBase.cs
- TextFragmentEngine.cs
- SessionEndedEventArgs.cs
- CacheMemory.cs
- PreviewPageInfo.cs
- TypeForwardedToAttribute.cs
- SignedXml.cs
- uribuilder.cs
- EmptyCollection.cs
- ExpressionList.cs
- DataGridRowHeaderAutomationPeer.cs
- InstanceDataCollection.cs
- AttributeEmitter.cs
- SqlBuffer.cs
- LineServicesRun.cs
- SqlAliaser.cs
- SoapFormatExtensions.cs
- PrintEvent.cs
- RoleManagerEventArgs.cs
- CompensatableSequenceActivity.cs
- BuilderPropertyEntry.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WebPartVerbCollection.cs
- StorageSetMapping.cs
- ICspAsymmetricAlgorithm.cs
- QueryFunctions.cs
- HtmlLink.cs
- CustomCategoryAttribute.cs
- Label.cs
- Html32TextWriter.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- BamlStream.cs
- QueueSurrogate.cs
- ClientType.cs
- AnnotationHelper.cs
- MatrixValueSerializer.cs
- WebPartZoneCollection.cs
- HttpConfigurationSystem.cs
- EventProviderWriter.cs
- TextAction.cs
- RichTextBoxAutomationPeer.cs
- ForeignKeyConstraint.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RegisteredHiddenField.cs
- HtmlElementCollection.cs
- DbMetaDataCollectionNames.cs
- DelegatingTypeDescriptionProvider.cs
- StrongName.cs