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
- IndexerNameAttribute.cs
- ColumnProvider.cs
- Root.cs
- ThrowOnMultipleAssignment.cs
- CodePrimitiveExpression.cs
- ResourceWriter.cs
- TabControlEvent.cs
- SubclassTypeValidatorAttribute.cs
- UIElementPropertyUndoUnit.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- Char.cs
- DataTableNewRowEvent.cs
- MemberPathMap.cs
- ISAPIApplicationHost.cs
- Control.cs
- SchemaTableOptionalColumn.cs
- Point4D.cs
- OpenFileDialog.cs
- BlurEffect.cs
- VarRefManager.cs
- Floater.cs
- XamlPoint3DCollectionSerializer.cs
- ServiceRoute.cs
- HttpDebugHandler.cs
- DescendentsWalkerBase.cs
- Convert.cs
- ThreadInterruptedException.cs
- KerberosSecurityTokenProvider.cs
- XmlCountingReader.cs
- control.ime.cs
- QilPatternFactory.cs
- PkcsMisc.cs
- DropShadowEffect.cs
- TableItemPattern.cs
- Delegate.cs
- Tracking.cs
- DesignTimeVisibleAttribute.cs
- CollectionCodeDomSerializer.cs
- NetTcpBindingElement.cs
- RSAPKCS1SignatureFormatter.cs
- Screen.cs
- HttpModuleAction.cs
- RegexRunner.cs
- XamlFrame.cs
- Converter.cs
- BuiltInExpr.cs
- WebPartEditVerb.cs
- DesignerUtility.cs
- FilterException.cs
- SqlDataReader.cs
- SortQuery.cs
- SamlSubject.cs
- QueryOperationResponseOfT.cs
- ListSourceHelper.cs
- XAMLParseException.cs
- Utils.cs
- TreeNodeSelectionProcessor.cs
- CodeAttributeArgument.cs
- EventTrigger.cs
- SqlStream.cs
- LineServicesRun.cs
- GridItem.cs
- Int64KeyFrameCollection.cs
- ApplicationInfo.cs
- dataSvcMapFileLoader.cs
- AuthenticationManager.cs
- HorizontalAlignConverter.cs
- StateFinalizationActivity.cs
- DateTimeOffset.cs
- ToolboxBitmapAttribute.cs
- CellQuery.cs
- SByteStorage.cs
- DesignerCapabilities.cs
- basenumberconverter.cs
- TextReader.cs
- FloatUtil.cs
- elementinformation.cs
- NonceToken.cs
- WorkflowPersistenceService.cs
- CompilationPass2Task.cs
- AttachedAnnotationChangedEventArgs.cs
- DataFieldConverter.cs
- GroupBoxDesigner.cs
- ParserStack.cs
- HttpRawResponse.cs
- XmlSchemaDatatype.cs
- LineGeometry.cs
- SqlException.cs
- QueryOpeningEnumerator.cs
- SerialStream.cs
- TemplateFactory.cs
- UserNameSecurityTokenAuthenticator.cs
- StateMachineDesignerPaint.cs
- ListBindingConverter.cs
- DataGridViewCellMouseEventArgs.cs
- invalidudtexception.cs
- FileEnumerator.cs
- EllipticalNodeOperations.cs
- UpdateTranslator.cs
- CriticalExceptions.cs