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
- CatalogZone.cs
- StylusPointProperties.cs
- ArcSegment.cs
- XmlDocumentFragment.cs
- Viewport3DVisual.cs
- DecoderReplacementFallback.cs
- ToolboxItemAttribute.cs
- _ListenerResponseStream.cs
- PropertyChangingEventArgs.cs
- ContainerVisual.cs
- GeneratedContractType.cs
- EndOfStreamException.cs
- Cast.cs
- WebPartUserCapability.cs
- MethodBody.cs
- IndividualDeviceConfig.cs
- AuthorizationRuleCollection.cs
- HandlerFactoryCache.cs
- SecureEnvironment.cs
- WebRequestModuleElementCollection.cs
- DataControlPagerLinkButton.cs
- DateTime.cs
- MenuItem.cs
- EventToken.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DynamicValidatorEventArgs.cs
- Message.cs
- DesignerDeviceConfig.cs
- CodeGeneratorOptions.cs
- PathGeometry.cs
- ElementHost.cs
- ContentValidator.cs
- Span.cs
- AddInController.cs
- TcpChannelFactory.cs
- CursorConverter.cs
- ViewSimplifier.cs
- EmptyElement.cs
- _UncName.cs
- IApplicationTrustManager.cs
- _OSSOCK.cs
- ChannelSinkStacks.cs
- SoapServerMessage.cs
- Function.cs
- WebPartConnectionsCloseVerb.cs
- GroupByQueryOperator.cs
- UniqueIdentifierService.cs
- EtwTrackingBehaviorElement.cs
- SingletonChannelAcceptor.cs
- InputMethodStateTypeInfo.cs
- Single.cs
- ToolStripItemGlyph.cs
- Activity.cs
- Selection.cs
- Section.cs
- WindowsGraphicsCacheManager.cs
- GeometryGroup.cs
- _FtpDataStream.cs
- PerformanceCounterPermission.cs
- SHA256Managed.cs
- EntityReference.cs
- UrlMappingsModule.cs
- ThreadBehavior.cs
- BaseValidatorDesigner.cs
- MessageSmuggler.cs
- MouseActionValueSerializer.cs
- XmlSchemaSimpleContent.cs
- invalidudtexception.cs
- WebResourceAttribute.cs
- Function.cs
- CalendarAutoFormatDialog.cs
- ResolveMatches11.cs
- LogEntrySerializationException.cs
- RuntimeConfigurationRecord.cs
- TableRowCollection.cs
- AssociationSetEnd.cs
- Number.cs
- EraserBehavior.cs
- AsynchronousChannel.cs
- TextSelectionHelper.cs
- EdmItemError.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- CellRelation.cs
- UrlParameterWriter.cs
- DataGridTableStyleMappingNameEditor.cs
- SqlSelectStatement.cs
- TextProviderWrapper.cs
- EntityDataSourceViewSchema.cs
- IdentityReference.cs
- SettingsBase.cs
- SHA512CryptoServiceProvider.cs
- PropertyInformation.cs
- recordstate.cs
- RectangleConverter.cs
- TextParagraph.cs
- EntityProviderServices.cs
- ModelItemExtensions.cs
- MediaEntryAttribute.cs
- BinaryWriter.cs
- EntityProviderServices.cs