Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / CollectionConverter.cs / 1305376 / CollectionConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using Microsoft.Win32; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Runtime.Serialization.Formatters; using System.Runtime.Remoting; using System.Runtime.InteropServices; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class CollectionConverter : TypeConverter { ///Provides a type converter to convert /// collection objects to and from various other representations. ////// public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == null) { throw new ArgumentNullException("destinationType"); } if (destinationType == typeof(string)) { if (value is ICollection) { return SR.GetString(SR.CollectionConverterText); } } return base.ConvertTo(context, culture, value, destinationType); } ///Converts the given /// value object to the /// specified destination type. ////// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { //return new PropertyDescriptorCollection(null); return null; } ///Gets a collection of properties for /// the type of array specified by the value parameter using the specified context and /// attributes. ////// public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets a value indicating whether this object /// supports properties. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PersonalizationState.cs
- InheritanceAttribute.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- XmlIgnoreAttribute.cs
- ProgramNode.cs
- XmlNullResolver.cs
- Control.cs
- ConfigXmlComment.cs
- StopRoutingHandler.cs
- ServiceConfigurationTraceRecord.cs
- AttributeProviderAttribute.cs
- DataProtection.cs
- WebServiceMethodData.cs
- HitTestResult.cs
- PenLineCapValidation.cs
- clipboard.cs
- RequestCachingSection.cs
- ContentWrapperAttribute.cs
- XmlSchemaComplexType.cs
- SequentialActivityDesigner.cs
- SizeFConverter.cs
- UriTemplateTrieNode.cs
- XmlSchemaAnnotation.cs
- EnumValAlphaComparer.cs
- WinCategoryAttribute.cs
- columnmapkeybuilder.cs
- MessageHeaderDescriptionCollection.cs
- CodeVariableDeclarationStatement.cs
- Debug.cs
- CopyOnWriteList.cs
- ManipulationStartingEventArgs.cs
- LookupBindingPropertiesAttribute.cs
- TransactionContextManager.cs
- DataPointer.cs
- DataRowCollection.cs
- SplineKeyFrames.cs
- MethodBody.cs
- PolicyManager.cs
- BooleanFacetDescriptionElement.cs
- Positioning.cs
- PeerNeighborManager.cs
- PropertyCondition.cs
- FlowLayout.cs
- JavaScriptObjectDeserializer.cs
- IEnumerable.cs
- Table.cs
- CodeExpressionStatement.cs
- XDRSchema.cs
- Choices.cs
- TraceProvider.cs
- DataPagerCommandEventArgs.cs
- SchemaNotation.cs
- SchemaEntity.cs
- TextSpanModifier.cs
- LinqDataSourceSelectEventArgs.cs
- ObjectDataSourceFilteringEventArgs.cs
- ListView.cs
- UTF32Encoding.cs
- ReachPageContentCollectionSerializerAsync.cs
- XmlDocumentFragment.cs
- SqlDataReaderSmi.cs
- ConditionCollection.cs
- StylusOverProperty.cs
- OdbcInfoMessageEvent.cs
- TimeZone.cs
- EncryptedReference.cs
- ByeMessageCD1.cs
- TheQuery.cs
- TreeNode.cs
- ParserStreamGeometryContext.cs
- MultiView.cs
- TripleDESCryptoServiceProvider.cs
- HtmlInputControl.cs
- StorageMappingFragment.cs
- XamlUtilities.cs
- Attachment.cs
- TypeConverterAttribute.cs
- Imaging.cs
- MenuScrollingVisibilityConverter.cs
- StringAnimationUsingKeyFrames.cs
- CodeDelegateCreateExpression.cs
- ScrollableControl.cs
- QilLiteral.cs
- ImmutableDispatchRuntime.cs
- SequentialActivityDesigner.cs
- DataIdProcessor.cs
- LifetimeServices.cs
- XmlNamespaceMapping.cs
- EncoderBestFitFallback.cs
- securitycriticaldataformultiplegetandset.cs
- ScopelessEnumAttribute.cs
- ToolBar.cs
- GeneralTransform3DTo2DTo3D.cs
- InputManager.cs
- JoinSymbol.cs
- PartBasedPackageProperties.cs
- BooleanToVisibilityConverter.cs
- PasswordRecovery.cs
- InputLanguageEventArgs.cs
- KeyGestureConverter.cs