Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringCollectionMarkupSerializer.cs
- SymbolPair.cs
- ExpressionVisitorHelpers.cs
- SHA384.cs
- UnauthorizedWebPart.cs
- XamlVector3DCollectionSerializer.cs
- SafeRightsManagementPubHandle.cs
- DynamicFilter.cs
- NavigationService.cs
- SpeechSeg.cs
- ScrollViewer.cs
- Gdiplus.cs
- PageHandlerFactory.cs
- DesignTimeTemplateParser.cs
- EventProviderBase.cs
- HtmlLink.cs
- FigureParagraph.cs
- DocumentProperties.cs
- RangeValidator.cs
- regiisutil.cs
- PermissionSetEnumerator.cs
- DataGridBoolColumn.cs
- TextBounds.cs
- M3DUtil.cs
- nulltextcontainer.cs
- Stroke2.cs
- XmlDataSource.cs
- PointLightBase.cs
- grammarelement.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- FileLevelControlBuilderAttribute.cs
- XamlRtfConverter.cs
- SapiInterop.cs
- FormCollection.cs
- ImageAutomationPeer.cs
- GroupStyle.cs
- DataGridPreparingCellForEditEventArgs.cs
- StatusBar.cs
- SystemIPGlobalProperties.cs
- RowToFieldTransformer.cs
- DPCustomTypeDescriptor.cs
- MultiAsyncResult.cs
- ApplicationFileParser.cs
- ActiveXHelper.cs
- RequestCachingSection.cs
- RemotingConfiguration.cs
- IArgumentProvider.cs
- ToolTipAutomationPeer.cs
- SemanticKeyElement.cs
- RegexTree.cs
- TypeInfo.cs
- SqlInternalConnection.cs
- BasicExpressionVisitor.cs
- DbConnectionPoolGroupProviderInfo.cs
- InstanceHandleConflictException.cs
- ComAwareEventInfo.cs
- FilteredDataSetHelper.cs
- RequiredFieldValidator.cs
- SoapServerMethod.cs
- XmlSerializerNamespaces.cs
- unsafenativemethodsother.cs
- ReachUIElementCollectionSerializerAsync.cs
- SHA256Managed.cs
- DropTarget.cs
- StickyNote.cs
- ObjectDataSourceSelectingEventArgs.cs
- SystemResourceKey.cs
- ListViewInsertedEventArgs.cs
- CodeThrowExceptionStatement.cs
- PKCS1MaskGenerationMethod.cs
- ColumnHeader.cs
- ErrorWrapper.cs
- DesignerGenericWebPart.cs
- ModifierKeysConverter.cs
- RtfFormatStack.cs
- QueryExpr.cs
- TrackingMemoryStreamFactory.cs
- Pointer.cs
- CustomAssemblyResolver.cs
- DefaultBindingPropertyAttribute.cs
- shaperfactory.cs
- precedingsibling.cs
- Matrix3DStack.cs
- PipelineModuleStepContainer.cs
- ClientFormsAuthenticationCredentials.cs
- DllNotFoundException.cs
- ValueOfAction.cs
- DataGridViewTextBoxCell.cs
- shaperfactoryquerycacheentry.cs
- InputLanguageProfileNotifySink.cs
- TemplateControlParser.cs
- XmlSerializerSection.cs
- ViewBox.cs
- PointCollectionConverter.cs
- BufferBuilder.cs
- PKCS1MaskGenerationMethod.cs
- BridgeDataReader.cs
- IRCollection.cs
- EmbeddedMailObjectsCollection.cs
- FileSystemWatcher.cs