Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / ConfigurationConverterBase.cs / 1 / ConfigurationConverterBase.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.IO; using System.Reflection; using System.Security.Permissions; using System.Xml; using System.Collections.Specialized; using System.Globalization; using System.ComponentModel; using System.Security; using System.Text; namespace System.Configuration { public abstract class ConfigurationConverterBase : TypeConverter { public override bool CanConvertTo(ITypeDescriptorContext ctx, Type type) { return (type == typeof(string)); } public override bool CanConvertFrom(ITypeDescriptorContext ctx, Type type) { return (type == typeof(string)); } internal void ValidateType(object value, Type expected) { if ((value != null) && (value.GetType() != expected)) { throw new ArgumentException(SR.GetString(SR.Converter_unsupported_value_type, expected.Name)); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.IO; using System.Reflection; using System.Security.Permissions; using System.Xml; using System.Collections.Specialized; using System.Globalization; using System.ComponentModel; using System.Security; using System.Text; namespace System.Configuration { public abstract class ConfigurationConverterBase : TypeConverter { public override bool CanConvertTo(ITypeDescriptorContext ctx, Type type) { return (type == typeof(string)); } public override bool CanConvertFrom(ITypeDescriptorContext ctx, Type type) { return (type == typeof(string)); } internal void ValidateType(object value, Type expected) { if ((value != null) && (value.GetType() != expected)) { throw new ArgumentException(SR.GetString(SR.Converter_unsupported_value_type, expected.Name)); } } } } // 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
- DependencyProperty.cs
- HuffModule.cs
- InsufficientMemoryException.cs
- FunctionQuery.cs
- ObfuscateAssemblyAttribute.cs
- WsatConfiguration.cs
- PrivilegeNotHeldException.cs
- MemoryStream.cs
- DataList.cs
- XXXOnTypeBuilderInstantiation.cs
- autovalidator.cs
- Rotation3D.cs
- ListControl.cs
- CustomWebEventKey.cs
- ImmutableCollection.cs
- SchemaTableOptionalColumn.cs
- HelpProvider.cs
- FileStream.cs
- ClientCredentials.cs
- ScriptComponentDescriptor.cs
- AQNBuilder.cs
- ProfileGroupSettingsCollection.cs
- _SSPIWrapper.cs
- DBDataPermissionAttribute.cs
- TrustManagerMoreInformation.cs
- EntityDataSourceChangedEventArgs.cs
- SettingsSection.cs
- __ComObject.cs
- DataService.cs
- NavigationWindowAutomationPeer.cs
- NetworkCredential.cs
- Animatable.cs
- ParameterEditorUserControl.cs
- BufferedResponseStream.cs
- SplitContainer.cs
- InstanceData.cs
- IndentedWriter.cs
- TextBoxAutomationPeer.cs
- StorageTypeMapping.cs
- SafeSecurityHandles.cs
- BoolExpr.cs
- RoutedEventArgs.cs
- WindowsGraphicsCacheManager.cs
- BinaryReader.cs
- ClassDataContract.cs
- CryptoApi.cs
- ExceptionUtil.cs
- CustomErrorCollection.cs
- SqlSelectStatement.cs
- QuaternionRotation3D.cs
- ExceptionUtility.cs
- CommonRemoteMemoryBlock.cs
- GridItemCollection.cs
- ModelUtilities.cs
- CodeExporter.cs
- EdmItemError.cs
- ReadOnlyCollectionBase.cs
- TraceData.cs
- MarkerProperties.cs
- ToolStripContentPanel.cs
- Adorner.cs
- FaultContext.cs
- QilStrConcat.cs
- ConfigurationConverterBase.cs
- StackOverflowException.cs
- SingleAnimation.cs
- ComponentEvent.cs
- TimeZone.cs
- COM2ExtendedUITypeEditor.cs
- DesignerSerializationVisibilityAttribute.cs
- PerformanceCounter.cs
- NameValueFileSectionHandler.cs
- NativeMethodsCLR.cs
- ThreadExceptionEvent.cs
- ServiceChannel.cs
- Flowchart.cs
- CreateUserWizard.cs
- ToolStripPanel.cs
- InfoCardSymmetricAlgorithm.cs
- keycontainerpermission.cs
- FramingEncoders.cs
- MimeObjectFactory.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- AdornerDecorator.cs
- EntityDataSourceDesignerHelper.cs
- FunctionMappingTranslator.cs
- SqlUserDefinedTypeAttribute.cs
- TableSectionStyle.cs
- HostProtectionPermission.cs
- AdornerDecorator.cs
- DbConnectionOptions.cs
- SearchForVirtualItemEventArgs.cs
- MetadataFile.cs
- VirtualDirectoryMappingCollection.cs
- Dictionary.cs
- MultiPageTextView.cs
- mediapermission.cs
- ETagAttribute.cs
- LinearQuaternionKeyFrame.cs
- PrefixQName.cs