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
- RenderContext.cs
- RelationshipType.cs
- InvalidPrinterException.cs
- IndividualDeviceConfig.cs
- WebGetAttribute.cs
- DataServiceContext.cs
- Row.cs
- BuildDependencySet.cs
- regiisutil.cs
- EncoderBestFitFallback.cs
- formatstringdialog.cs
- WebPartExportVerb.cs
- GregorianCalendar.cs
- XmlWrappingWriter.cs
- FileDialogPermission.cs
- CheckPair.cs
- SqlTypesSchemaImporter.cs
- BitmapDownload.cs
- GenericsInstances.cs
- LogStream.cs
- RuntimeEnvironment.cs
- XmlILOptimizerVisitor.cs
- RegexNode.cs
- EntityContainer.cs
- StringAnimationUsingKeyFrames.cs
- TextDecorationCollectionConverter.cs
- ToolStripItemClickedEventArgs.cs
- FreeFormDragDropManager.cs
- ToolStripSeparatorRenderEventArgs.cs
- XamlPoint3DCollectionSerializer.cs
- TextElementEnumerator.cs
- messageonlyhwndwrapper.cs
- WebDisplayNameAttribute.cs
- ModifyActivitiesPropertyDescriptor.cs
- Internal.cs
- SubMenuStyleCollection.cs
- WSSecurityJan2004.cs
- HitTestFilterBehavior.cs
- ScaleTransform.cs
- XamlParser.cs
- ExpressionVisitorHelpers.cs
- SaveCardRequest.cs
- TextEmbeddedObject.cs
- EdmComplexTypeAttribute.cs
- CacheMemory.cs
- OracleEncoding.cs
- TextWriter.cs
- ErrorEventArgs.cs
- AssemblyEvidenceFactory.cs
- WrappedIUnknown.cs
- Match.cs
- GetUserPreferenceRequest.cs
- Module.cs
- PtsPage.cs
- TableStyle.cs
- Html32TextWriter.cs
- ModelTreeEnumerator.cs
- XmlSecureResolver.cs
- InternalCache.cs
- DbExpressionRules.cs
- TemplateParser.cs
- Claim.cs
- Quaternion.cs
- InvalidPropValue.cs
- FrameworkContentElement.cs
- TimeStampChecker.cs
- TimeSpanConverter.cs
- TCPClient.cs
- AppliedDeviceFiltersDialog.cs
- SecurityProtocolFactory.cs
- PerformanceCounterPermission.cs
- TranslateTransform3D.cs
- InternalEnumValidatorAttribute.cs
- TypedRowHandler.cs
- RuleElement.cs
- NoClickablePointException.cs
- ThicknessKeyFrameCollection.cs
- MappingSource.cs
- ProvideValueServiceProvider.cs
- Brushes.cs
- XmlEntity.cs
- SessionStateContainer.cs
- ProfilePropertySettings.cs
- KeyConstraint.cs
- WriteFileContext.cs
- DataGridCellClipboardEventArgs.cs
- RequestCacheManager.cs
- NullableDecimalSumAggregationOperator.cs
- HandleCollector.cs
- Utils.cs
- AspCompat.cs
- HttpCachePolicyElement.cs
- HtmlShimManager.cs
- DbConnectionPoolGroupProviderInfo.cs
- hebrewshape.cs
- DataGridViewCheckBoxCell.cs
- ExpressionBuilder.cs
- DataReaderContainer.cs
- XsdDateTime.cs
- DataDocumentXPathNavigator.cs