Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / UInt32Converter.cs / 1305376 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProcessHost.cs
- XpsResource.cs
- ClipboardProcessor.cs
- BinaryVersion.cs
- ToolStripSplitButton.cs
- ServiceProviders.cs
- XmlCodeExporter.cs
- NeutralResourcesLanguageAttribute.cs
- RectangleGeometry.cs
- listitem.cs
- WebAdminConfigurationHelper.cs
- HandlerFactoryWrapper.cs
- PageVisual.cs
- Msec.cs
- ExecutionProperties.cs
- NetSectionGroup.cs
- SchemaLookupTable.cs
- ExecutionContext.cs
- WebBaseEventKeyComparer.cs
- PathNode.cs
- AsymmetricSecurityBindingElement.cs
- Win32.cs
- IndexerNameAttribute.cs
- InstalledFontCollection.cs
- GlyphElement.cs
- SelectedGridItemChangedEvent.cs
- ContainerParagraph.cs
- UInt16Storage.cs
- ConfigDefinitionUpdates.cs
- TextServicesCompartmentEventSink.cs
- SqlClientMetaDataCollectionNames.cs
- DropShadowEffect.cs
- ThaiBuddhistCalendar.cs
- DesignerDataTable.cs
- TraceEventCache.cs
- webproxy.cs
- ControlCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- ArithmeticException.cs
- GeneralTransform3DTo2D.cs
- MexTcpBindingElement.cs
- _UriTypeConverter.cs
- JumpItem.cs
- RoleService.cs
- CaseInsensitiveComparer.cs
- CommandID.cs
- SamlDoNotCacheCondition.cs
- PriorityBinding.cs
- DataRecord.cs
- SiteMapNodeCollection.cs
- DeviceSpecificDialogCachedState.cs
- WindowPattern.cs
- BaseParser.cs
- XmlSchemaComplexContentRestriction.cs
- Helper.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- AppSettingsSection.cs
- Screen.cs
- QuaternionRotation3D.cs
- WaveHeader.cs
- XmlArrayItemAttribute.cs
- OleDbDataReader.cs
- TemplateBindingExpressionConverter.cs
- NamedElement.cs
- FunctionMappingTranslator.cs
- DbMetaDataCollectionNames.cs
- DrawTreeNodeEventArgs.cs
- SQLCharsStorage.cs
- TextPointer.cs
- OrthographicCamera.cs
- XmlTextEncoder.cs
- DnsPermission.cs
- StringSource.cs
- Content.cs
- PackageRelationship.cs
- ServiceDesigner.cs
- PageAsyncTaskManager.cs
- EntityStoreSchemaFilterEntry.cs
- MetadataItem.cs
- AmbientValueAttribute.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- EntityCommand.cs
- HtmlTableRow.cs
- ChangeDirector.cs
- HighlightComponent.cs
- TypeForwardedToAttribute.cs
- DataGridViewToolTip.cs
- OdbcUtils.cs
- MouseOverProperty.cs
- MemberCollection.cs
- EtwProvider.cs
- TextStore.cs
- UriPrefixTable.cs
- StorageEntitySetMapping.cs
- BuilderElements.cs
- StreamingContext.cs
- EntityDataSourceSelectingEventArgs.cs
- GetLastErrorDetailsRequest.cs
- ValidationErrorCollection.cs
- HttpListenerRequestUriBuilder.cs