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
- AutomationElement.cs
- HtmlFormWrapper.cs
- ForceCopyBuildProvider.cs
- XamlRtfConverter.cs
- WebConvert.cs
- StaticContext.cs
- coordinatorfactory.cs
- ObjectQueryState.cs
- BmpBitmapDecoder.cs
- CodeEntryPointMethod.cs
- FileClassifier.cs
- recordstatescratchpad.cs
- WebUtil.cs
- CatalogZoneDesigner.cs
- IxmlLineInfo.cs
- AuthStoreRoleProvider.cs
- XPathNodeList.cs
- SoapSchemaExporter.cs
- XmlNamespaceManager.cs
- XmlHierarchicalEnumerable.cs
- FunctionDefinition.cs
- Message.cs
- NavigationProgressEventArgs.cs
- WebPartPersonalization.cs
- TimeSpan.cs
- ListViewCancelEventArgs.cs
- PageThemeBuildProvider.cs
- TemplateBuilder.cs
- FormsAuthentication.cs
- HandleDictionary.cs
- CannotUnloadAppDomainException.cs
- QuaternionRotation3D.cs
- WmlValidatorAdapter.cs
- ServiceEndpointElementCollection.cs
- SmtpFailedRecipientsException.cs
- PropertyPath.cs
- ActiveXMessageFormatter.cs
- TreeNode.cs
- FolderBrowserDialog.cs
- RangeBase.cs
- MetadataUtilsSmi.cs
- NonParentingControl.cs
- OdbcInfoMessageEvent.cs
- BookmarkResumptionRecord.cs
- ArraySortHelper.cs
- DocumentSignatureManager.cs
- ItemDragEvent.cs
- AlternateView.cs
- SortFieldComparer.cs
- HtmlInputText.cs
- querybuilder.cs
- FullTextBreakpoint.cs
- TreeNodeClickEventArgs.cs
- JoinElimination.cs
- AxisAngleRotation3D.cs
- AxHost.cs
- LinkClickEvent.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- XpsFontSubsetter.cs
- HGlobalSafeHandle.cs
- PolyLineSegment.cs
- ResourceManager.cs
- safex509handles.cs
- Win32KeyboardDevice.cs
- AuthenticodeSignatureInformation.cs
- AssemblyBuilder.cs
- Int32Rect.cs
- AssociatedControlConverter.cs
- ViewBase.cs
- BuildProviderUtils.cs
- ViewManager.cs
- EUCJPEncoding.cs
- FileRecordSequence.cs
- LeaseManager.cs
- HttpRequestWrapper.cs
- ToolboxItemWrapper.cs
- SortedSet.cs
- UserMapPath.cs
- DispatchChannelSink.cs
- TextSegment.cs
- CapiSafeHandles.cs
- ChannelTraceRecord.cs
- EventEntry.cs
- StringDictionaryWithComparer.cs
- UrlMappingCollection.cs
- LookupTables.cs
- LogicalExpressionEditor.cs
- DeclaredTypeElement.cs
- AppModelKnownContentFactory.cs
- SatelliteContractVersionAttribute.cs
- ContextMenu.cs
- HttpListenerElement.cs
- InvalidComObjectException.cs
- IgnoreSectionHandler.cs
- Closure.cs
- DispatchProxy.cs
- NumberSubstitution.cs
- Partitioner.cs
- NativeWindow.cs
- ComplexBindingPropertiesAttribute.cs