Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / SByteConverter.cs / 1 / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SetIterators.cs
- OutputCacheProfile.cs
- XhtmlBasicControlAdapter.cs
- BinaryCommonClasses.cs
- WebPartEditorApplyVerb.cs
- BevelBitmapEffect.cs
- EventLogRecord.cs
- WebPartDisplayModeCollection.cs
- SetMemberBinder.cs
- AlternateView.cs
- DatasetMethodGenerator.cs
- ColorConvertedBitmap.cs
- MetadataPropertyvalue.cs
- EdmValidator.cs
- ACL.cs
- ValidationError.cs
- ValueConversionAttribute.cs
- ScalarOps.cs
- DependencyObjectType.cs
- Hashtable.cs
- ClientSession.cs
- SelectedGridItemChangedEvent.cs
- TypeBinaryExpression.cs
- Calendar.cs
- WebServiceClientProxyGenerator.cs
- BitmapEffectGroup.cs
- HiddenFieldPageStatePersister.cs
- MenuItemBinding.cs
- FileDataSourceCache.cs
- LayeredChannelFactory.cs
- ListParaClient.cs
- DetailsViewUpdatedEventArgs.cs
- FormatControl.cs
- XmlC14NWriter.cs
- UnknownBitmapDecoder.cs
- MappingModelBuildProvider.cs
- StringStorage.cs
- SpecularMaterial.cs
- TypeExtension.cs
- _TransmitFileOverlappedAsyncResult.cs
- BinaryConverter.cs
- DeferredTextReference.cs
- RunClient.cs
- ButtonChrome.cs
- WebServiceErrorEvent.cs
- MatrixAnimationBase.cs
- XmlElementList.cs
- ServiceConfigurationTraceRecord.cs
- Mouse.cs
- webclient.cs
- TypeUtil.cs
- XmlSchemaSimpleTypeRestriction.cs
- XmlDataSourceNodeDescriptor.cs
- OrderByBuilder.cs
- MasterPageCodeDomTreeGenerator.cs
- Composition.cs
- HitTestDrawingContextWalker.cs
- RectAnimationClockResource.cs
- XmlSchemaAppInfo.cs
- TextElementEnumerator.cs
- MdiWindowListItemConverter.cs
- ReflectionServiceProvider.cs
- LogRecordSequence.cs
- CompressedStack.cs
- SdlChannelSink.cs
- SiteMapSection.cs
- PersianCalendar.cs
- GradientSpreadMethodValidation.cs
- HttpResponse.cs
- WindowsSolidBrush.cs
- DictionaryEntry.cs
- MappingModelBuildProvider.cs
- Preprocessor.cs
- WorkflowDesignerMessageFilter.cs
- FileSystemEventArgs.cs
- SecurityDescriptor.cs
- FontFamily.cs
- SymmetricKeyWrap.cs
- RequestCache.cs
- SaveFileDialog.cs
- ResXResourceSet.cs
- CounterNameConverter.cs
- DataListCommandEventArgs.cs
- EventHandlersStore.cs
- MethodAccessException.cs
- JapaneseLunisolarCalendar.cs
- XmlHierarchicalEnumerable.cs
- NodeFunctions.cs
- Input.cs
- PopupRoot.cs
- AssociatedControlConverter.cs
- WinFormsSecurity.cs
- Vector3DKeyFrameCollection.cs
- WinEventTracker.cs
- EntryPointNotFoundException.cs
- Soap12ServerProtocol.cs
- CssStyleCollection.cs
- PeerObject.cs
- Compiler.cs
- XmlSerializerSection.cs