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
- Environment.cs
- DesignerView.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DateTimeSerializationSection.cs
- GroupStyle.cs
- HelloMessageCD1.cs
- GenericsNotImplementedException.cs
- LocationFactory.cs
- XmlDigitalSignatureProcessor.cs
- Part.cs
- TextSelectionHighlightLayer.cs
- HttpListenerContext.cs
- PageFunction.cs
- HtmlTitle.cs
- SecurityHeaderElementInferenceEngine.cs
- SegmentInfo.cs
- CultureTableRecord.cs
- PageThemeParser.cs
- AnonymousIdentificationModule.cs
- DataGridViewCheckBoxColumn.cs
- StrokeCollectionDefaultValueFactory.cs
- MetricEntry.cs
- NativeMethods.cs
- DecimalConverter.cs
- Baml2006KeyRecord.cs
- HttpResponseInternalBase.cs
- ThreadTrace.cs
- UIPropertyMetadata.cs
- PerformanceCounterPermissionEntry.cs
- OleDbEnumerator.cs
- InfoCardAsymmetricCrypto.cs
- ScrollProperties.cs
- ACL.cs
- SourceItem.cs
- CalendarTable.cs
- BaseParser.cs
- Int64KeyFrameCollection.cs
- WindowsListBox.cs
- Table.cs
- DocumentViewerAutomationPeer.cs
- SQLBinaryStorage.cs
- CompModHelpers.cs
- HttpPostClientProtocol.cs
- XmlSortKey.cs
- DetailsViewRow.cs
- NamespaceInfo.cs
- DateTimeValueSerializer.cs
- BitmapEffectCollection.cs
- WebServicesDescriptionAttribute.cs
- HebrewCalendar.cs
- DataGridTable.cs
- ActionNotSupportedException.cs
- DataBindingValueUIHandler.cs
- TypedMessageConverter.cs
- MediaPlayerState.cs
- SqlClientMetaDataCollectionNames.cs
- ChtmlTextWriter.cs
- DataGridViewCellValueEventArgs.cs
- DomainUpDown.cs
- dbenumerator.cs
- BaseParaClient.cs
- ContractAdapter.cs
- DispatchChannelSink.cs
- MemberHolder.cs
- ReadWriteControlDesigner.cs
- FastEncoder.cs
- SourceFileBuildProvider.cs
- Oci.cs
- TextPattern.cs
- Baml2006Reader.cs
- TokenizerHelper.cs
- DoubleCollectionConverter.cs
- BinaryNode.cs
- HwndSourceParameters.cs
- _NegotiateClient.cs
- XmlIncludeAttribute.cs
- HostedHttpTransportManager.cs
- ColorConverter.cs
- EntityTypeBase.cs
- DynamicILGenerator.cs
- TextStore.cs
- XmlSchemaExternal.cs
- TypeHelpers.cs
- SByteConverter.cs
- XmlSchemaComplexContentRestriction.cs
- SafeEventLogWriteHandle.cs
- HandleCollector.cs
- ThemeDirectoryCompiler.cs
- DatePicker.cs
- HtmlEncodedRawTextWriter.cs
- TerminateSequence.cs
- ListViewGroup.cs
- TlsSspiNegotiation.cs
- PriorityItem.cs
- precedingsibling.cs
- TemplateColumn.cs
- DeploymentSection.cs
- OperandQuery.cs
- DataGridHeaderBorder.cs
- PageCatalogPart.cs