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
- DataGridViewButtonColumn.cs
- XamlWrappingReader.cs
- SupportingTokenDuplexChannel.cs
- SmtpNetworkElement.cs
- Compress.cs
- smtpconnection.cs
- HtmlButton.cs
- NotifyInputEventArgs.cs
- StaticFileHandler.cs
- OleDbReferenceCollection.cs
- ValueTable.cs
- Pens.cs
- HttpDebugHandler.cs
- VirtualDirectoryMappingCollection.cs
- DataGridViewIntLinkedList.cs
- GeneralTransform3DTo2D.cs
- EndpointFilterProvider.cs
- WindowsIPAddress.cs
- XamlSerializationHelper.cs
- RbTree.cs
- BamlReader.cs
- ProviderConnectionPointCollection.cs
- SchemaCreator.cs
- HwndSourceParameters.cs
- ConfigurationException.cs
- UInt16Converter.cs
- EndpointInstanceProvider.cs
- ElementUtil.cs
- TranslateTransform.cs
- RenderDataDrawingContext.cs
- ProcessModelSection.cs
- SqlCaseSimplifier.cs
- StylusButtonCollection.cs
- HostedHttpRequestAsyncResult.cs
- DispatchChannelSink.cs
- DataSourceProvider.cs
- ListViewDeletedEventArgs.cs
- BlockExpression.cs
- SqlStatistics.cs
- ApplicationHost.cs
- KeyManager.cs
- ArcSegment.cs
- TraceContextRecord.cs
- HttpListenerContext.cs
- InvalidOperationException.cs
- InheritanceRules.cs
- TraceRecord.cs
- HotCommands.cs
- TypeDelegator.cs
- GetFileNameResult.cs
- OutKeywords.cs
- XmlTextReaderImplHelpers.cs
- RedirectionProxy.cs
- BaseDataBoundControl.cs
- Crc32.cs
- BooleanFunctions.cs
- EventLogSession.cs
- XmlnsDictionary.cs
- HtmlContainerControl.cs
- RSAPKCS1SignatureDeformatter.cs
- DatasetMethodGenerator.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- RewritingPass.cs
- SafeBitVector32.cs
- ColorTransformHelper.cs
- UInt32Converter.cs
- RsaKeyIdentifierClause.cs
- ByteConverter.cs
- Polyline.cs
- SchemaElementDecl.cs
- RowToFieldTransformer.cs
- CodeGroup.cs
- AdPostCacheSubstitution.cs
- TextHidden.cs
- Int16AnimationUsingKeyFrames.cs
- SystemResources.cs
- ListBoxItemWrapperAutomationPeer.cs
- SimpleTextLine.cs
- BindingMAnagerBase.cs
- SqlDataSourceConfigureFilterForm.cs
- SqlWebEventProvider.cs
- SortableBindingList.cs
- EntitySqlException.cs
- TimeEnumHelper.cs
- Psha1DerivedKeyGenerator.cs
- PolyBezierSegmentFigureLogic.cs
- FontCacheLogic.cs
- XmlSerializationWriter.cs
- ForeignKeyConstraint.cs
- PanelStyle.cs
- DbDataReader.cs
- VBCodeProvider.cs
- SafeHandles.cs
- DataException.cs
- InvokeCompletedEventArgs.cs
- PositiveTimeSpanValidator.cs
- StackBuilderSink.cs
- Encoder.cs
- WhitespaceRule.cs
- HScrollProperties.cs