Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / VersionConverter.cs / 1305376 / VersionConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.ComponentModel; using System.Configuration; using System.Globalization; internal sealed class VersionConverter : ConfigurationConverterBase { public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { return new Version((string)value); } public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { var version = (Version)value; return version.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.ComponentModel; using System.Configuration; using System.Globalization; internal sealed class VersionConverter : ConfigurationConverterBase { public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { return new Version((string)value); } public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { var version = (Version)value; return version.ToString(); } } } // 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
- ClassHandlersStore.cs
- NamespaceDisplayAutomationPeer.cs
- ApplyTemplatesAction.cs
- ToolStripProgressBar.cs
- UdpTransportSettings.cs
- CommandField.cs
- ObjectConverter.cs
- FormatterConverter.cs
- WsdlExporter.cs
- CurrencyWrapper.cs
- EngineSiteSapi.cs
- BindingContext.cs
- DBCSCodePageEncoding.cs
- CaseInsensitiveHashCodeProvider.cs
- RegexParser.cs
- assertwrapper.cs
- TextRangeEdit.cs
- ConfigurationSectionHelper.cs
- SplineKeyFrames.cs
- InternalsVisibleToAttribute.cs
- CreateUserErrorEventArgs.cs
- AsyncOperationManager.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- _ContextAwareResult.cs
- SystemWebSectionGroup.cs
- EncryptedData.cs
- Funcletizer.cs
- Color.cs
- DynamicDataManager.cs
- LogWriteRestartAreaAsyncResult.cs
- HttpApplicationFactory.cs
- BindingSource.cs
- ProvidersHelper.cs
- Executor.cs
- HashMembershipCondition.cs
- MenuStrip.cs
- MissingMemberException.cs
- ToolStripItem.cs
- PrintDialog.cs
- SetStoryboardSpeedRatio.cs
- ReadWriteSpinLock.cs
- CategoryAttribute.cs
- LabelAutomationPeer.cs
- XmlILAnnotation.cs
- MaskedTextProvider.cs
- COMException.cs
- _NegotiateClient.cs
- EntityParameterCollection.cs
- GridViewCancelEditEventArgs.cs
- CryptoConfig.cs
- SmtpReplyReaderFactory.cs
- QueryPageSettingsEventArgs.cs
- ObjectSpanRewriter.cs
- ParenthesizePropertyNameAttribute.cs
- XmlLanguage.cs
- SmiEventSink.cs
- ImageMetadata.cs
- AttachedPropertyBrowsableAttribute.cs
- ToolStripGrip.cs
- DoWhile.cs
- ActivityDesigner.cs
- XamlFigureLengthSerializer.cs
- SqlDataSourceSelectingEventArgs.cs
- DataGridViewBand.cs
- TargetControlTypeCache.cs
- Triplet.cs
- PartitionResolver.cs
- ReferenceService.cs
- CompositionTarget.cs
- entitydatasourceentitysetnameconverter.cs
- streamingZipPartStream.cs
- Thread.cs
- ColumnReorderedEventArgs.cs
- Parser.cs
- entityreference_tresulttype.cs
- PriorityBinding.cs
- SqlCharStream.cs
- SqlCacheDependencyDatabaseCollection.cs
- ConfigXmlSignificantWhitespace.cs
- ByteConverter.cs
- MgmtConfigurationRecord.cs
- WebServiceReceiveDesigner.cs
- XmlAttributeCache.cs
- SupportsEventValidationAttribute.cs
- InvokePattern.cs
- contentDescriptor.cs
- ToolStripKeyboardHandlingService.cs
- CrossSiteScriptingValidation.cs
- InputManager.cs
- HttpCookieCollection.cs
- Quad.cs
- ContainerControlDesigner.cs
- CompositeDataBoundControl.cs
- ExpressionWriter.cs
- DataSourceControlBuilder.cs
- CurrentChangedEventManager.cs
- ObjectTag.cs
- HijriCalendar.cs
- ColorConverter.cs
- CatalogPartCollection.cs