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
- StdRegProviderWrapper.cs
- OdbcPermission.cs
- FileDetails.cs
- AuthorizationSection.cs
- Peer.cs
- DeleteIndexBinder.cs
- IsolatedStorage.cs
- XmlNotation.cs
- TypeToken.cs
- SQLCharsStorage.cs
- SamlAssertion.cs
- CodePageUtils.cs
- OracleConnection.cs
- CodeTypeParameter.cs
- VarInfo.cs
- TargetConverter.cs
- PackageFilter.cs
- DefaultPrintController.cs
- TextWriterEngine.cs
- CompoundFileStorageReference.cs
- XamlHttpHandlerFactory.cs
- SQLConvert.cs
- SearchForVirtualItemEventArgs.cs
- ContextProperty.cs
- DataTableTypeConverter.cs
- _LoggingObject.cs
- ProfileSettings.cs
- SQLMoney.cs
- nulltextnavigator.cs
- IIS7UserPrincipal.cs
- MenuScrollingVisibilityConverter.cs
- StringConcat.cs
- ClusterSafeNativeMethods.cs
- DeflateEmulationStream.cs
- BackStopAuthenticationModule.cs
- HwndStylusInputProvider.cs
- UdpUtility.cs
- ObjectStateManagerMetadata.cs
- CssStyleCollection.cs
- BuildTopDownAttribute.cs
- EntityDataSourceContainerNameConverter.cs
- ImportCatalogPart.cs
- UnmanagedMemoryStream.cs
- DataTable.cs
- SimpleWebHandlerParser.cs
- NativeMethods.cs
- NameValueConfigurationElement.cs
- PersonalizationEntry.cs
- VScrollProperties.cs
- RegexParser.cs
- GPStream.cs
- ObjectCacheHost.cs
- Serializer.cs
- IisTraceListener.cs
- EmptyEnumerable.cs
- Literal.cs
- PriorityQueue.cs
- DataGridViewElement.cs
- ClientRuntimeConfig.cs
- StandardCommands.cs
- ListViewDeleteEventArgs.cs
- NameTable.cs
- ObjectSecurity.cs
- ServiceDesigner.cs
- ImageListUtils.cs
- DataSysAttribute.cs
- InternalConfigHost.cs
- DataGridItemEventArgs.cs
- ModuleBuilderData.cs
- Style.cs
- PolyQuadraticBezierSegment.cs
- PersistChildrenAttribute.cs
- RunClient.cs
- XmlSchemaSimpleTypeUnion.cs
- BoolLiteral.cs
- ReflectionTypeLoadException.cs
- ResourceReferenceKeyNotFoundException.cs
- CollectionConverter.cs
- Hex.cs
- SafeNativeMethods.cs
- Focus.cs
- DurationConverter.cs
- AutoResizedEvent.cs
- RecordManager.cs
- GiveFeedbackEvent.cs
- XmlUtil.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- Helper.cs
- TouchDevice.cs
- UIElementParagraph.cs
- CornerRadius.cs
- SessionStateItemCollection.cs
- PointCollection.cs
- Accessible.cs
- TreeViewEvent.cs
- GlyphTypeface.cs
- mactripleDES.cs
- LayoutManager.cs
- SerializationInfoEnumerator.cs
- AddInContractAttribute.cs