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
- MetadataSource.cs
- _TransmitFileOverlappedAsyncResult.cs
- RTLAwareMessageBox.cs
- IntegerCollectionEditor.cs
- TableLayoutSettings.cs
- GridViewColumnCollectionChangedEventArgs.cs
- RangeBaseAutomationPeer.cs
- Zone.cs
- LogFlushAsyncResult.cs
- HtmlInputFile.cs
- Button.cs
- Models.cs
- ViewPort3D.cs
- SqlWriter.cs
- DataListDesigner.cs
- srgsitem.cs
- PrinterSettings.cs
- Directory.cs
- NavigationPropertyEmitter.cs
- WebPartZoneCollection.cs
- AttributedMetaModel.cs
- OutputCacheModule.cs
- SimpleBitVector32.cs
- Int32CollectionConverter.cs
- backend.cs
- TableLayoutStyle.cs
- HashHelper.cs
- ClientFormsIdentity.cs
- SafeLocalMemHandle.cs
- GlobalProxySelection.cs
- AsnEncodedData.cs
- DataServiceRequest.cs
- EventDescriptorCollection.cs
- TrackingStringDictionary.cs
- SqlClientPermission.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ConditionalBranch.cs
- OleDbFactory.cs
- DisplayNameAttribute.cs
- RTLAwareMessageBox.cs
- MetafileHeaderWmf.cs
- JoinTreeNode.cs
- SqlExpander.cs
- ResourceReferenceExpression.cs
- FileChangesMonitor.cs
- SmiRequestExecutor.cs
- webbrowsersite.cs
- UIElementAutomationPeer.cs
- CacheOutputQuery.cs
- PropertyGeneratedEventArgs.cs
- BlurEffect.cs
- ArrayListCollectionBase.cs
- BindingContext.cs
- SoapCodeExporter.cs
- XmlHierarchyData.cs
- EllipticalNodeOperations.cs
- ContentFileHelper.cs
- FocusWithinProperty.cs
- XhtmlBasicTextBoxAdapter.cs
- AttachedAnnotation.cs
- NCryptSafeHandles.cs
- GenericPrincipal.cs
- GridViewUpdatedEventArgs.cs
- AssociatedControlConverter.cs
- SimpleTextLine.cs
- ToolBarButton.cs
- BoundingRectTracker.cs
- SqlClientMetaDataCollectionNames.cs
- FontSizeConverter.cs
- DataGridViewCellStyleConverter.cs
- UpdateCompiler.cs
- StreamGeometryContext.cs
- DbConnectionHelper.cs
- Visual3D.cs
- safemediahandle.cs
- SQLString.cs
- ToolStripRenderer.cs
- SwitchLevelAttribute.cs
- SettingsBindableAttribute.cs
- SqlDesignerDataSourceView.cs
- ImageInfo.cs
- ObjRef.cs
- ConfigXmlSignificantWhitespace.cs
- BinaryObjectWriter.cs
- AddInController.cs
- AnonymousIdentificationSection.cs
- SspiWrapper.cs
- InvalidateEvent.cs
- WindowClosedEventArgs.cs
- MaskedTextBox.cs
- PackageStore.cs
- CodeCommentStatementCollection.cs
- HandleCollector.cs
- ApplicationSecurityInfo.cs
- BamlResourceDeserializer.cs
- WmfPlaceableFileHeader.cs
- EntityContainerEmitter.cs
- SqlDelegatedTransaction.cs
- StylusButtonEventArgs.cs
- CombinedGeometry.cs