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
- WebEvents.cs
- PeerTransportSecuritySettings.cs
- Matrix3DStack.cs
- CodeMethodInvokeExpression.cs
- ProviderConnectionPointCollection.cs
- Line.cs
- WorkerRequest.cs
- DateTimeConstantAttribute.cs
- DeploymentSection.cs
- WebResourceAttribute.cs
- NameObjectCollectionBase.cs
- XmlSchemaInfo.cs
- StateWorkerRequest.cs
- ConnectionPoolManager.cs
- PolicyStatement.cs
- PermissionListSet.cs
- IApplicationTrustManager.cs
- MethodBuilder.cs
- SynchronizingStream.cs
- MembershipSection.cs
- PagesSection.cs
- Selection.cs
- CollectionConverter.cs
- ToolboxCategoryItems.cs
- AnonymousIdentificationModule.cs
- Label.cs
- RequestSecurityTokenResponseCollection.cs
- BinaryObjectInfo.cs
- EventLevel.cs
- StructuredType.cs
- StoreAnnotationsMap.cs
- LongPath.cs
- DataContractSerializerFaultFormatter.cs
- AssemblyInfo.cs
- UnsafeNativeMethods.cs
- ToolStripDesignerAvailabilityAttribute.cs
- TextRunCacheImp.cs
- WebPartHeaderCloseVerb.cs
- BitStack.cs
- ModelUIElement3D.cs
- PublishLicense.cs
- PeerResolverSettings.cs
- DeferredRunTextReference.cs
- AuthenticationService.cs
- FacetValueContainer.cs
- ConnectionPoint.cs
- TypeConverter.cs
- DocumentViewerBaseAutomationPeer.cs
- Attributes.cs
- TextInfo.cs
- PartialToken.cs
- TraceListener.cs
- GridViewUpdatedEventArgs.cs
- InvalidProgramException.cs
- EventBuilder.cs
- ChangePasswordDesigner.cs
- TypeDescriptor.cs
- EntityClientCacheKey.cs
- assemblycache.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ClientRoleProvider.cs
- ProjectedSlot.cs
- TextEncodedRawTextWriter.cs
- DebugController.cs
- ConstraintManager.cs
- LinqDataSourceContextEventArgs.cs
- SQLInt16Storage.cs
- Clipboard.cs
- EntityClientCacheEntry.cs
- DataGridViewCellLinkedList.cs
- _NetworkingPerfCounters.cs
- DataGridLinkButton.cs
- BulletedListEventArgs.cs
- OracleBoolean.cs
- RequestBringIntoViewEventArgs.cs
- RequestCacheEntry.cs
- BypassElement.cs
- UserControlBuildProvider.cs
- DataObjectMethodAttribute.cs
- DesignOnlyAttribute.cs
- RelatedView.cs
- ValidationSummary.cs
- NativeMethodsOther.cs
- CompatibleComparer.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- Constants.cs
- ToolStripLabel.cs
- ConfigurationException.cs
- FontFamilyConverter.cs
- SerializationTrace.cs
- SecurityAppliedMessage.cs
- PrimaryKeyTypeConverter.cs
- Journaling.cs
- PersonalizationStateInfoCollection.cs
- safex509handles.cs
- StreamSecurityUpgradeAcceptorBase.cs
- FtpRequestCacheValidator.cs
- StringConcat.cs
- IntermediatePolicyValidator.cs
- IdleTimeoutMonitor.cs