Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / CommaDelimitedStringAttributeCollectionConverter.cs / 1305376 / CommaDelimitedStringAttributeCollectionConverter.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 sealed class CommaDelimitedStringCollectionConverter : ConfigurationConverterBase { public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) { ValidateType(value, typeof(CommaDelimitedStringCollection)); CommaDelimitedStringCollection internalValue = value as CommaDelimitedStringCollection; if (internalValue != null) { return internalValue.ToString(); } else { return null; } } public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data) { CommaDelimitedStringCollection attributeCollection = new CommaDelimitedStringCollection(); attributeCollection.FromString((string)data); return attributeCollection; } } } // 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
- ProviderConnectionPointCollection.cs
- TextModifier.cs
- ReturnType.cs
- NeutralResourcesLanguageAttribute.cs
- AnnotationComponentChooser.cs
- BinarySecretSecurityToken.cs
- ToolStripSettings.cs
- RadioButtonBaseAdapter.cs
- ImageSourceValueSerializer.cs
- Focus.cs
- CompositeActivityDesigner.cs
- IconBitmapDecoder.cs
- GeneralTransform3DGroup.cs
- ServicePointManager.cs
- ToolStripDropTargetManager.cs
- RadioButton.cs
- XmlSchemaElement.cs
- MatrixTransform3D.cs
- Codec.cs
- TemplateKey.cs
- PropertyEmitter.cs
- PointLightBase.cs
- PointLight.cs
- RandomNumberGenerator.cs
- ConditionalAttribute.cs
- SerializableAttribute.cs
- QilValidationVisitor.cs
- XPathDescendantIterator.cs
- ShimAsPublicXamlType.cs
- ActiveXSite.cs
- BooleanToVisibilityConverter.cs
- IImplicitResourceProvider.cs
- DynamicDocumentPaginator.cs
- PassportAuthentication.cs
- WebReferencesBuildProvider.cs
- WebControl.cs
- XPathDocumentNavigator.cs
- VideoDrawing.cs
- ServicesUtilities.cs
- PropertyChangedEventArgs.cs
- SudsParser.cs
- CompleteWizardStep.cs
- Ops.cs
- DetailsViewCommandEventArgs.cs
- StringTraceRecord.cs
- TileBrush.cs
- Rotation3D.cs
- UnmanagedMarshal.cs
- CompilerParameters.cs
- SubpageParagraph.cs
- SymmetricKeyWrap.cs
- XmlQueryOutput.cs
- Attributes.cs
- QueryInterceptorAttribute.cs
- Array.cs
- SqlParameter.cs
- ClientScriptManager.cs
- IDispatchConstantAttribute.cs
- SamlNameIdentifierClaimResource.cs
- ThreadStaticAttribute.cs
- DbMetaDataCollectionNames.cs
- ExpandableObjectConverter.cs
- RuntimeHelpers.cs
- DynamicPropertyHolder.cs
- SystemEvents.cs
- CombinedGeometry.cs
- CodeGenerator.cs
- AdRotator.cs
- Random.cs
- OrderedDictionaryStateHelper.cs
- CheckoutException.cs
- FrameworkContentElement.cs
- HealthMonitoringSection.cs
- StyleXamlTreeBuilder.cs
- XmlChildNodes.cs
- PackageRelationshipCollection.cs
- RijndaelManagedTransform.cs
- RequestCachePolicy.cs
- CheckBoxRenderer.cs
- remotingproxy.cs
- XmlWellformedWriter.cs
- Int16AnimationUsingKeyFrames.cs
- _AcceptOverlappedAsyncResult.cs
- InkCanvasAutomationPeer.cs
- RadioButtonRenderer.cs
- TypedTableGenerator.cs
- SamlSerializer.cs
- StackSpiller.Generated.cs
- DataViewSettingCollection.cs
- DataGridRowHeaderAutomationPeer.cs
- BinaryNode.cs
- PublishLicense.cs
- GeometryCollection.cs
- FormViewDeletedEventArgs.cs
- MD5CryptoServiceProvider.cs
- AdornerLayer.cs
- SingleTagSectionHandler.cs
- IndentedWriter.cs
- SynchronizedPool.cs
- XmlSchemaType.cs