Code:
/ DotNET / DotNET / 8.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
- Brush.cs
- BaseCodePageEncoding.cs
- CategoryNameCollection.cs
- ProxyWebPartConnectionCollection.cs
- MobileUserControl.cs
- SqlTransaction.cs
- QuadraticBezierSegment.cs
- ToolStripCustomTypeDescriptor.cs
- CachedPathData.cs
- SystemColors.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- KeyedCollection.cs
- ReadOnlyAttribute.cs
- ComboBox.cs
- ChangeTracker.cs
- TransformValueSerializer.cs
- SqlRewriteScalarSubqueries.cs
- XmlObjectSerializerWriteContext.cs
- VisualStyleInformation.cs
- GPPOINTF.cs
- DecoderExceptionFallback.cs
- FunctionQuery.cs
- PeerOutputChannel.cs
- SafeFileMapViewHandle.cs
- HasCopySemanticsAttribute.cs
- BindUriHelper.cs
- IdentityManager.cs
- PackageDocument.cs
- Normalization.cs
- ValueTypeFixupInfo.cs
- DateTimeFormatInfoScanner.cs
- GetPageNumberCompletedEventArgs.cs
- CharAnimationBase.cs
- UnsafeNativeMethodsPenimc.cs
- MetricEntry.cs
- DbCommandTree.cs
- StopStoryboard.cs
- DoubleLinkListEnumerator.cs
- Bitmap.cs
- VersionedStreamOwner.cs
- DesignerEditorPartChrome.cs
- TimeManager.cs
- GPPOINTF.cs
- XmlAttributeAttribute.cs
- XmlDataSource.cs
- InternalConfigRoot.cs
- StaticTextPointer.cs
- TableRow.cs
- XmlnsDefinitionAttribute.cs
- HyperLink.cs
- RoutingChannelExtension.cs
- RunInstallerAttribute.cs
- DataSourceListEditor.cs
- ConfigurationSettings.cs
- ResizeGrip.cs
- ExpandCollapseProviderWrapper.cs
- EdgeModeValidation.cs
- SelectionItemPattern.cs
- ItemCheckEvent.cs
- BStrWrapper.cs
- ScriptControlDescriptor.cs
- PropertyGridEditorPart.cs
- StrongNameMembershipCondition.cs
- SerTrace.cs
- TextEditorSelection.cs
- Knowncolors.cs
- Slider.cs
- DbgUtil.cs
- HttpApplicationStateWrapper.cs
- CallSite.cs
- DayRenderEvent.cs
- CookielessData.cs
- SymbolTable.cs
- UpdatePanelControlTrigger.cs
- WebPartDisplayMode.cs
- Terminate.cs
- documentsequencetextpointer.cs
- CodeDirectionExpression.cs
- UserControlCodeDomTreeGenerator.cs
- XmlAnyElementAttributes.cs
- PenContext.cs
- UtilityExtension.cs
- XmlValueConverter.cs
- XmlSerializerFactory.cs
- EdmItemError.cs
- DiffuseMaterial.cs
- SqlCacheDependencyDatabase.cs
- GeneratedView.cs
- ReadOnlyTernaryTree.cs
- NodeInfo.cs
- CodeGotoStatement.cs
- ExpressionNode.cs
- NativeObjectSecurity.cs
- SequentialUshortCollection.cs
- CompositeDataBoundControl.cs
- SrgsElementFactory.cs
- SystemUdpStatistics.cs
- BeginCreateSecurityTokenRequest.cs
- PeerToPeerException.cs
- HandlerMappingMemo.cs