Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Int16Converter.cs / 1305376 / Int16Converter.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 Int16Converter : BaseNumberConverter { ///Provides a type converter to convert 16-bit signed 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(Int16); } } ////// Convert the given value to a string using the given radix /// internal override object FromString(string value, int radix) { return Convert.ToInt16(value, radix); } ////// Convert the given value to a string using the given CultureInfo /// internal override object FromString(string value, CultureInfo culture){ return Int16.Parse(value, culture); } ////// Convert the given value to a string using the given formatInfo /// internal override object FromString(string value, NumberFormatInfo formatInfo) { return Int16.Parse(value, NumberStyles.Integer, formatInfo); } ////// Convert the given value from a string using the given formatInfo /// internal override string ToString(object value, NumberFormatInfo formatInfo) { return ((Int16)value).ToString("G", formatInfo); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NavigationFailedEventArgs.cs
- cache.cs
- PageBorderless.cs
- RenderDataDrawingContext.cs
- ProfileModule.cs
- JoinGraph.cs
- DesignerWebPartChrome.cs
- Empty.cs
- SplineKeyFrames.cs
- DecimalConverter.cs
- SqlTriggerContext.cs
- TreeNode.cs
- XmlFormatMapping.cs
- CryptoProvider.cs
- RenderDataDrawingContext.cs
- OpCopier.cs
- PbrsForward.cs
- Merger.cs
- DbProviderManifest.cs
- Page.cs
- RelationshipDetailsRow.cs
- LinkedResource.cs
- ReadWriteSpinLock.cs
- SerializationFieldInfo.cs
- DataGridViewColumnCollectionDialog.cs
- ValueSerializer.cs
- HtmlFormParameterReader.cs
- SignatureGenerator.cs
- ConnectionPoint.cs
- CalendarButton.cs
- LogicalTreeHelper.cs
- XsdDataContractExporter.cs
- Statements.cs
- TreeNodeCollection.cs
- XmlSchemaValidator.cs
- StagingAreaInputItem.cs
- ProviderException.cs
- SharedStatics.cs
- XmlSerializerAssemblyAttribute.cs
- PocoPropertyAccessorStrategy.cs
- SoapObjectReader.cs
- XmlExceptionHelper.cs
- WSFederationHttpSecurityMode.cs
- ChannelTerminatedException.cs
- ButtonBaseDesigner.cs
- ResourceWriter.cs
- CapiNative.cs
- ChildDocumentBlock.cs
- SelectorItemAutomationPeer.cs
- MetafileHeaderEmf.cs
- Encoding.cs
- QueryAccessibilityHelpEvent.cs
- TableItemStyle.cs
- PointAnimationUsingKeyFrames.cs
- SignatureToken.cs
- AuthenticationService.cs
- EmptyStringExpandableObjectConverter.cs
- TreeViewCancelEvent.cs
- FieldToken.cs
- FontSizeConverter.cs
- FromReply.cs
- ControlParameter.cs
- FaultDesigner.cs
- EpmSyndicationContentDeSerializer.cs
- StrokeNode.cs
- NodeFunctions.cs
- NullableLongAverageAggregationOperator.cs
- ReadOnlyDataSourceView.cs
- WebDescriptionAttribute.cs
- SafeCoTaskMem.cs
- CodeNamespaceImport.cs
- IApplicationTrustManager.cs
- MenuItem.cs
- StringPropertyBuilder.cs
- IRCollection.cs
- SqlGatherConsumedAliases.cs
- NullableDoubleAverageAggregationOperator.cs
- ActionFrame.cs
- DrawingDrawingContext.cs
- GeometryModel3D.cs
- ProtocolsConfigurationEntry.cs
- WebPartDisplayModeEventArgs.cs
- COAUTHINFO.cs
- VisualBasicExpressionConverter.cs
- GiveFeedbackEvent.cs
- ConfigurationElementCollection.cs
- SafeViewOfFileHandle.cs
- ClientBuildManagerCallback.cs
- SiteMapProvider.cs
- SystemTcpStatistics.cs
- ControlValuePropertyAttribute.cs
- PagerSettings.cs
- AppSettingsExpressionBuilder.cs
- Partitioner.cs
- HttpContextServiceHost.cs
- ConnectionManagementElementCollection.cs
- CustomValidator.cs
- safesecurityhelperavalon.cs
- Soap11ServerProtocol.cs
- TraceProvider.cs