Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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
- StreamReader.cs
- RouteCollection.cs
- HttpFormatExtensions.cs
- SqlWorkflowPersistenceService.cs
- SrgsElementFactory.cs
- _AcceptOverlappedAsyncResult.cs
- safex509handles.cs
- HttpCapabilitiesBase.cs
- OutputScopeManager.cs
- IPipelineRuntime.cs
- CodeParameterDeclarationExpression.cs
- DataGridViewComboBoxColumn.cs
- LoadedOrUnloadedOperation.cs
- Timer.cs
- ProgramPublisher.cs
- SettingsBindableAttribute.cs
- ServiceModelReg.cs
- JournalEntryStack.cs
- AnnotationAuthorChangedEventArgs.cs
- SamlAuthenticationStatement.cs
- CreatingCookieEventArgs.cs
- ActiveXHost.cs
- Stack.cs
- tabpagecollectioneditor.cs
- Rfc2898DeriveBytes.cs
- HostVisual.cs
- DoubleAnimationUsingPath.cs
- PropertyToken.cs
- ApplicationInterop.cs
- XmlSchemaSimpleType.cs
- WebPartConnection.cs
- Border.cs
- UserNamePasswordServiceCredential.cs
- Tokenizer.cs
- XPathItem.cs
- BasicHttpMessageSecurityElement.cs
- SecurityListenerSettingsLifetimeManager.cs
- SessionStateSection.cs
- UriTemplateTable.cs
- hwndwrapper.cs
- PermissionSetEnumerator.cs
- PageStatePersister.cs
- DocumentXmlWriter.cs
- Window.cs
- BitmapFrame.cs
- BaseTemplateBuildProvider.cs
- CustomAttribute.cs
- ApplicationId.cs
- SqlBinder.cs
- AdCreatedEventArgs.cs
- PageAsyncTaskManager.cs
- ConstructorNeedsTagAttribute.cs
- ViewStateChangedEventArgs.cs
- ResourceAssociationSet.cs
- WindowsFormsHostAutomationPeer.cs
- XmlTextEncoder.cs
- SqlRowUpdatedEvent.cs
- ChangeNode.cs
- QuotedStringFormatReader.cs
- ObjectSpanRewriter.cs
- WebServiceClientProxyGenerator.cs
- TemplateColumn.cs
- ArrayList.cs
- XmlCharCheckingReader.cs
- WebPartUtil.cs
- RandomDelayQueuedSendsAsyncResult.cs
- FacetDescription.cs
- ListChangedEventArgs.cs
- ContentIterators.cs
- ServiceDesigner.xaml.cs
- RubberbandSelector.cs
- StylusPointPropertyInfo.cs
- InkCanvasFeedbackAdorner.cs
- EventMappingSettings.cs
- SHA1CryptoServiceProvider.cs
- XmlLoader.cs
- LeaseManager.cs
- CompilationSection.cs
- EvidenceBase.cs
- WinCategoryAttribute.cs
- odbcmetadatafactory.cs
- DataGridViewElement.cs
- StylusPlugin.cs
- Keyboard.cs
- XslUrlEditor.cs
- AppModelKnownContentFactory.cs
- SqlClientMetaDataCollectionNames.cs
- AccessDataSourceView.cs
- StrokeCollection2.cs
- XpsSerializerFactory.cs
- SignatureHelper.cs
- PassportAuthenticationModule.cs
- PersonalizationStateInfo.cs
- HtmlToClrEventProxy.cs
- MatcherBuilder.cs
- NumberFormatter.cs
- EntityStoreSchemaGenerator.cs
- ImageListStreamer.cs
- AnimationLayer.cs
- NetworkInformationException.cs