Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / SByteConverter.cs / 1305376 / SByteConverter.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 SByteConverter : BaseNumberConverter { ///Provides a /// type converter to convert 8-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(SByte); } } ////// Convert the given value to a string using the given radix /// internal override object FromString(string value, int radix) { return Convert.ToSByte(value, radix); } ////// Convert the given value to a string using the given formatInfo /// internal override object FromString(string value, NumberFormatInfo formatInfo) { return SByte.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 SByte.Parse(value, culture); } ////// Convert the given value from a string using the given formatInfo /// internal override string ToString(object value, NumberFormatInfo formatInfo) { return ((SByte)value).ToString("G", formatInfo); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NumericExpr.cs
- XmlDocumentType.cs
- DomainUpDown.cs
- TextCompositionEventArgs.cs
- LinearQuaternionKeyFrame.cs
- dbdatarecord.cs
- ImageMapEventArgs.cs
- QilIterator.cs
- Renderer.cs
- XhtmlTextWriter.cs
- ResourceSet.cs
- LinqDataSourceContextData.cs
- ComponentDispatcher.cs
- ModelPropertyDescriptor.cs
- CodeVariableDeclarationStatement.cs
- TrimSurroundingWhitespaceAttribute.cs
- TimeZone.cs
- PropertyConverter.cs
- PointIndependentAnimationStorage.cs
- storepermissionattribute.cs
- StructuredCompositeActivityDesigner.cs
- InstalledFontCollection.cs
- EdmFunctions.cs
- SqlProfileProvider.cs
- Configuration.cs
- ParseNumbers.cs
- StoreContentChangedEventArgs.cs
- HandledMouseEvent.cs
- NameSpaceExtractor.cs
- UrlMappingCollection.cs
- NotifyInputEventArgs.cs
- OptimalBreakSession.cs
- EtwTrace.cs
- DataSourceCollectionBase.cs
- PointAnimationBase.cs
- WindowsIdentity.cs
- DataContractSerializerSection.cs
- SecUtil.cs
- FixedLineResult.cs
- UnsafeNativeMethods.cs
- NamedElement.cs
- DateTime.cs
- ITextView.cs
- TextSearch.cs
- BindToObject.cs
- NullRuntimeConfig.cs
- AdRotator.cs
- UdpMessageProperty.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- HitTestDrawingContextWalker.cs
- TableDetailsCollection.cs
- WebPartEditVerb.cs
- XmlNullResolver.cs
- DbConnectionPool.cs
- DictionaryTraceRecord.cs
- DialogWindow.cs
- SqlDuplicator.cs
- FacetChecker.cs
- FactorySettingsElement.cs
- DataGridViewAddColumnDialog.cs
- AuthenticationModulesSection.cs
- FontNamesConverter.cs
- ObjectListShowCommandsEventArgs.cs
- DataSourceView.cs
- Documentation.cs
- GridViewEditEventArgs.cs
- Int64AnimationUsingKeyFrames.cs
- QueueProcessor.cs
- ThumbButtonInfo.cs
- DecryptRequest.cs
- _LocalDataStore.cs
- MsmqTransportReceiveParameters.cs
- CompModSwitches.cs
- TrackBarDesigner.cs
- DBAsyncResult.cs
- ObjectDataSourceFilteringEventArgs.cs
- LinqDataSourceDeleteEventArgs.cs
- IndicFontClient.cs
- EmbeddedMailObjectsCollection.cs
- ApplicationHost.cs
- LocalizableAttribute.cs
- QueryContinueDragEvent.cs
- IIS7WorkerRequest.cs
- FlowSwitchDesigner.xaml.cs
- XmlExtensionFunction.cs
- Animatable.cs
- MouseGestureConverter.cs
- MethodCallTranslator.cs
- DateTimeFormat.cs
- PagerSettings.cs
- EntityParameterCollection.cs
- AdornedElementPlaceholder.cs
- ValidationErrorCollection.cs
- BooleanStorage.cs
- PackageRelationshipCollection.cs
- ScrollEventArgs.cs
- SizeFConverter.cs
- InnerItemCollectionView.cs
- CLSCompliantAttribute.cs
- PrePostDescendentsWalker.cs