Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / CollectionConverter.cs / 1 / 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; } } }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
- ArrayList.cs
- GenericEnumConverter.cs
- GlobalProxySelection.cs
- WebScriptServiceHost.cs
- OleDbCommandBuilder.cs
- ScriptReference.cs
- Light.cs
- DesignerCapabilities.cs
- XmlArrayAttribute.cs
- DataGridViewElement.cs
- TextTreeUndo.cs
- XmlObjectSerializerReadContextComplex.cs
- CodeCatchClause.cs
- util.cs
- WindowsFormsSectionHandler.cs
- StrokeDescriptor.cs
- WebPartTransformerAttribute.cs
- followingquery.cs
- HierarchicalDataSourceDesigner.cs
- ClientData.cs
- CodeTypeDeclarationCollection.cs
- FormViewInsertEventArgs.cs
- OverflowException.cs
- Suspend.cs
- NavigationPropertyEmitter.cs
- Variant.cs
- TraceRecord.cs
- CultureInfoConverter.cs
- SelectionListDesigner.cs
- UTF7Encoding.cs
- RequiredFieldValidator.cs
- HtmlInputReset.cs
- NominalTypeEliminator.cs
- AttachedPropertyMethodSelector.cs
- XPathNavigatorReader.cs
- ValidationEventArgs.cs
- PaintEvent.cs
- ResourceAssociationType.cs
- XamlStyleSerializer.cs
- Triangle.cs
- ObjectToModelValueConverter.cs
- EntityDataSourceWrapper.cs
- EntityDesignerDataSourceView.cs
- TextRangeEditLists.cs
- CompilerTypeWithParams.cs
- CompilationPass2TaskInternal.cs
- RectIndependentAnimationStorage.cs
- Screen.cs
- DocumentOrderQuery.cs
- MethodExpression.cs
- DesignerVerbCollection.cs
- MD5Cng.cs
- OutputCacheSettings.cs
- XslAst.cs
- _ScatterGatherBuffers.cs
- LogRecordSequence.cs
- DoubleLinkListEnumerator.cs
- SafeBuffer.cs
- ProgressPage.cs
- XmlSchemaFacet.cs
- TimeManager.cs
- CultureMapper.cs
- ObjectConverter.cs
- StreamWriter.cs
- ScrollEvent.cs
- RegexWorker.cs
- PointConverter.cs
- WebResponse.cs
- InvokeProviderWrapper.cs
- CatalogZone.cs
- FileDialog_Vista_Interop.cs
- shaper.cs
- QuaternionRotation3D.cs
- XmlSchemaComplexContentRestriction.cs
- SqlConnectionManager.cs
- CheckBoxPopupAdapter.cs
- ObjectConverter.cs
- HostedBindingBehavior.cs
- FixedPageStructure.cs
- ImageCollectionEditor.cs
- ComponentRenameEvent.cs
- DataGridViewRowsAddedEventArgs.cs
- ListViewItem.cs
- AsyncStreamReader.cs
- RunClient.cs
- XmlComplianceUtil.cs
- CryptographicAttribute.cs
- PageVisual.cs
- FontSource.cs
- X509Certificate.cs
- NativeWindow.cs
- UrlAuthorizationModule.cs
- Stack.cs
- SafeRightsManagementPubHandle.cs
- OrderPreservingSpoolingTask.cs
- WindowsFormsLinkLabel.cs
- ByteRangeDownloader.cs
- StickyNoteHelper.cs
- SynchronizedPool.cs
- Int32AnimationUsingKeyFrames.cs