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
- PolicyChain.cs
- WindowsGraphics.cs
- TabletCollection.cs
- PropertyCondition.cs
- Pair.cs
- Matrix3DConverter.cs
- PasswordPropertyTextAttribute.cs
- InputManager.cs
- BlockExpression.cs
- TagMapCollection.cs
- SqlUserDefinedTypeAttribute.cs
- Int64AnimationUsingKeyFrames.cs
- DesignerAttribute.cs
- Filter.cs
- TextParagraphView.cs
- TemplateNameScope.cs
- DataTableTypeConverter.cs
- MenuAutoFormat.cs
- ExpandCollapsePattern.cs
- SponsorHelper.cs
- ExecutionContext.cs
- DelegateHelpers.Generated.cs
- XPathParser.cs
- ObjRef.cs
- ParenthesizePropertyNameAttribute.cs
- ToolStripDropDownClosedEventArgs.cs
- CharEntityEncoderFallback.cs
- ISO2022Encoding.cs
- RpcCryptoRequest.cs
- DataKey.cs
- OleDbStruct.cs
- NumericExpr.cs
- ContainerParagraph.cs
- DeclarationUpdate.cs
- GlyphShapingProperties.cs
- Encoder.cs
- PopOutPanel.cs
- SignatureToken.cs
- ViewStateModeByIdAttribute.cs
- MessageContractImporter.cs
- StreamReader.cs
- ServiceEndpointElement.cs
- DecimalMinMaxAggregationOperator.cs
- NavigatingCancelEventArgs.cs
- AggregateNode.cs
- WebPartVerbsEventArgs.cs
- WindowsStatic.cs
- WindowVisualStateTracker.cs
- XmlSchemaElement.cs
- KnownIds.cs
- VolatileResourceManager.cs
- DataGridViewCellConverter.cs
- DesignerAttribute.cs
- DBCommandBuilder.cs
- LogWriteRestartAreaAsyncResult.cs
- QueryHandler.cs
- SqlNotificationRequest.cs
- _AcceptOverlappedAsyncResult.cs
- StructuredTypeEmitter.cs
- ReversePositionQuery.cs
- RijndaelManaged.cs
- TextTreeTextBlock.cs
- PropertyFilterAttribute.cs
- TextEditorCharacters.cs
- Popup.cs
- ContentType.cs
- ParentQuery.cs
- TemplatePropertyEntry.cs
- IgnorePropertiesAttribute.cs
- UntypedNullExpression.cs
- HashCodeCombiner.cs
- DynamicMethod.cs
- ParseChildrenAsPropertiesAttribute.cs
- mediaeventshelper.cs
- FontInfo.cs
- WasEndpointConfigContainer.cs
- ProviderConnectionPointCollection.cs
- RootProfilePropertySettingsCollection.cs
- SplineKeyFrames.cs
- RSAPKCS1SignatureFormatter.cs
- IListConverters.cs
- GridView.cs
- TableCellCollection.cs
- XmlSchemaExternal.cs
- UIElementHelper.cs
- AutoResizedEvent.cs
- InstanceValue.cs
- GlobalProxySelection.cs
- VisualCollection.cs
- SafeFileMappingHandle.cs
- Calendar.cs
- NetTcpSectionData.cs
- SqlException.cs
- TreeNodeConverter.cs
- SQLBinary.cs
- RepeaterItemEventArgs.cs
- ReachPrintTicketSerializer.cs
- SqlDelegatedTransaction.cs
- DataViewManager.cs
- BinaryParser.cs