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
- Win32.cs
- BrowserInteropHelper.cs
- SmtpFailedRecipientsException.cs
- ExtensionQuery.cs
- WebZoneDesigner.cs
- DataGridCell.cs
- WebCategoryAttribute.cs
- KeysConverter.cs
- QilGeneratorEnv.cs
- MessageEncoderFactory.cs
- TemplateBaseAction.cs
- ResumeStoryboard.cs
- WebBodyFormatMessageProperty.cs
- StateDesigner.CommentLayoutGlyph.cs
- MetabaseServerConfig.cs
- RuleInfoComparer.cs
- VirtualStackFrame.cs
- GridViewEditEventArgs.cs
- CustomAttributeBuilder.cs
- AssemblyBuilder.cs
- Propagator.cs
- ConfigurationException.cs
- InstanceNameConverter.cs
- Overlapped.cs
- ConcurrentBag.cs
- ProfilePropertyMetadata.cs
- ServiceElementCollection.cs
- AVElementHelper.cs
- GridViewAutoFormat.cs
- ItemCheckedEvent.cs
- NumericPagerField.cs
- DBSchemaTable.cs
- ScriptResourceInfo.cs
- BitmapEffectrendercontext.cs
- HyperLinkStyle.cs
- FileDialogCustomPlace.cs
- WebPartZoneBaseDesigner.cs
- TextChange.cs
- KeyToListMap.cs
- SecurityPermission.cs
- Peer.cs
- EncoderFallback.cs
- EmbeddedMailObjectCollectionEditor.cs
- WebPartDisplayMode.cs
- WMIGenerator.cs
- ToolBarButtonClickEvent.cs
- PassportIdentity.cs
- Vector3DAnimationUsingKeyFrames.cs
- OutputCacheProfileCollection.cs
- WCFBuildProvider.cs
- DPTypeDescriptorContext.cs
- CustomAttribute.cs
- HttpWebResponse.cs
- ApplicationBuildProvider.cs
- TimelineClockCollection.cs
- EnumType.cs
- SafeThreadHandle.cs
- HttpCacheParams.cs
- RequiredAttributeAttribute.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- NotifyParentPropertyAttribute.cs
- RadioButton.cs
- HttpContextWrapper.cs
- InkCanvasFeedbackAdorner.cs
- OptimizedTemplateContentHelper.cs
- HwndSourceKeyboardInputSite.cs
- BamlBinaryReader.cs
- MetadataPropertyvalue.cs
- WorkflowInstanceRecord.cs
- RegexTree.cs
- DirectionalLight.cs
- PropertyMapper.cs
- EntityDesignerBuildProvider.cs
- Tag.cs
- EdmTypeAttribute.cs
- safelink.cs
- SimpleTypeResolver.cs
- SerialPort.cs
- DataGridViewCellValueEventArgs.cs
- IImplicitResourceProvider.cs
- PersistenceException.cs
- MediaScriptCommandRoutedEventArgs.cs
- PrintDocument.cs
- AssociationSetEnd.cs
- CodeAttributeDeclaration.cs
- DbDataRecord.cs
- OptimalBreakSession.cs
- MinimizableAttributeTypeConverter.cs
- XmlDownloadManager.cs
- OutgoingWebResponseContext.cs
- MethodSignatureGenerator.cs
- TemplatePartAttribute.cs
- GradientSpreadMethodValidation.cs
- IsolatedStorageException.cs
- NativeObjectSecurity.cs
- NameSpaceExtractor.cs
- RotationValidation.cs
- BinHexDecoder.cs
- Function.cs
- StateDesignerConnector.cs