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
- JsonFormatMapping.cs
- DefaultValueTypeConverter.cs
- KnownBoxes.cs
- UInt64.cs
- ServiceMetadataPublishingElement.cs
- XmlSchemaValidator.cs
- mil_sdk_version.cs
- RSAPKCS1SignatureFormatter.cs
- DecoratedNameAttribute.cs
- CodeCommentStatement.cs
- Int32Rect.cs
- Executor.cs
- PathSegment.cs
- CellTreeSimplifier.cs
- AutomationProperty.cs
- TargetConverter.cs
- COM2PropertyBuilderUITypeEditor.cs
- FrameworkElementAutomationPeer.cs
- WebPartUserCapability.cs
- EUCJPEncoding.cs
- WindowsSecurityTokenAuthenticator.cs
- Queue.cs
- SessionStateContainer.cs
- BigInt.cs
- DataObjectMethodAttribute.cs
- StackBuilderSink.cs
- DataGridSortCommandEventArgs.cs
- Compiler.cs
- EntityTypeEmitter.cs
- WindowProviderWrapper.cs
- DbModificationClause.cs
- RowType.cs
- DataGridViewColumnStateChangedEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- WindowsRichEdit.cs
- Process.cs
- Clause.cs
- CodePrimitiveExpression.cs
- GridViewRowPresenter.cs
- FieldBuilder.cs
- CodeGenerator.cs
- Opcode.cs
- ToolStripScrollButton.cs
- ZipIOCentralDirectoryFileHeader.cs
- QueryableDataSource.cs
- GeneralTransformGroup.cs
- WebBrowsableAttribute.cs
- ImageListUtils.cs
- WizardForm.cs
- DataTableMappingCollection.cs
- NamespaceQuery.cs
- WriterOutput.cs
- TimeSpanStorage.cs
- Membership.cs
- ToolStripSplitStackLayout.cs
- Visual.cs
- DaylightTime.cs
- FindCriteria11.cs
- SharedStatics.cs
- CubicEase.cs
- UnionExpr.cs
- MexServiceChannelBuilder.cs
- StringUtil.cs
- SqlDataSourceCache.cs
- ToolboxItem.cs
- RuntimeConfig.cs
- DisplayInformation.cs
- StylusPointPropertyUnit.cs
- RegisteredArrayDeclaration.cs
- Bits.cs
- KeyMatchBuilder.cs
- ByteKeyFrameCollection.cs
- MessageQueuePermissionAttribute.cs
- StrokeNode.cs
- PerformanceCounterPermission.cs
- Int32Rect.cs
- _RequestCacheProtocol.cs
- xdrvalidator.cs
- SqlMethodCallConverter.cs
- TextMarkerSource.cs
- LogPolicy.cs
- HexParser.cs
- messageonlyhwndwrapper.cs
- SqlDataSourceCache.cs
- IsolatedStorageFile.cs
- Adorner.cs
- IgnoreFileBuildProvider.cs
- XmlTypeAttribute.cs
- ListViewDataItem.cs
- WebSysDisplayNameAttribute.cs
- FrameworkContextData.cs
- LoadItemsEventArgs.cs
- LayoutTable.cs
- ComPersistableTypeElementCollection.cs
- WebEventCodes.cs
- OrElse.cs
- newitemfactory.cs
- DoubleAverageAggregationOperator.cs
- CodeSnippetStatement.cs
- XmlSchemaComplexType.cs