Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / Workflow / Activities / WorkflowServiceAttributesTypeConverter.cs / 1305376 / WorkflowServiceAttributesTypeConverter.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Workflow.Activities { using System.ComponentModel; class WorkflowServiceAttributesTypeConverter : TypeConverter { public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { // TypeDescriptor.GetProperties is used here to get the sub properties of the property that we want to be able // to be expandable in the property browser PropertyDescriptorCollection subProperties = TypeDescriptor.GetProperties(value, new Attribute[] { new BrowsableAttribute(true) }); return subProperties; } public override bool GetPropertiesSupported(ITypeDescriptorContext context) { // This is to make the property expandable into sub properties int he property browser return true; } } } // 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
- QuotaThrottle.cs
- ThrowHelper.cs
- RuleSetReference.cs
- ByteStreamGeometryContext.cs
- XmlTextReader.cs
- ConfigurationException.cs
- ToolStripItem.cs
- SafeRegistryHandle.cs
- SafeFreeMibTable.cs
- SynchronousChannel.cs
- ImageUrlEditor.cs
- precedingsibling.cs
- NGCUIElementCollectionSerializerAsync.cs
- SqlDuplicator.cs
- RTLAwareMessageBox.cs
- MenuItemAutomationPeer.cs
- ListViewHitTestInfo.cs
- XmlRawWriter.cs
- EventLogEntry.cs
- HasRunnableWorkflowEvent.cs
- PixelFormatConverter.cs
- ServicePoint.cs
- MouseActionValueSerializer.cs
- DBAsyncResult.cs
- ActivityInstanceMap.cs
- SecurityPermission.cs
- CollectionViewGroup.cs
- MethodExecutor.cs
- Main.cs
- ProvideValueServiceProvider.cs
- ContentControl.cs
- WebEncodingValidatorAttribute.cs
- GroupBox.cs
- LocalizedNameDescriptionPair.cs
- TripleDES.cs
- SequenceDesigner.cs
- OpenFileDialog.cs
- RijndaelManaged.cs
- ParallelEnumerable.cs
- HybridDictionary.cs
- ProtectedConfiguration.cs
- InputLanguageProfileNotifySink.cs
- SessionPageStatePersister.cs
- SecurityContext.cs
- PersonalizationProviderHelper.cs
- BCryptHashAlgorithm.cs
- TextElement.cs
- IntellisenseTextBox.cs
- GraphicsContext.cs
- DragDeltaEventArgs.cs
- TabControl.cs
- AccessDataSource.cs
- AppDomain.cs
- WmlSelectionListAdapter.cs
- CharacterHit.cs
- PropertiesTab.cs
- LogicalExpressionEditor.cs
- _LoggingObject.cs
- SafeNativeMethods.cs
- TableCellCollection.cs
- DetailsViewRow.cs
- Emitter.cs
- List.cs
- DrawItemEvent.cs
- InterleavedZipPartStream.cs
- ContainerControlDesigner.cs
- FontEmbeddingManager.cs
- UserControlParser.cs
- CodeTypeReferenceCollection.cs
- CodeValidator.cs
- DataControlFieldHeaderCell.cs
- DbXmlEnabledProviderManifest.cs
- CatalogZoneBase.cs
- TableCell.cs
- SortedSet.cs
- BamlRecords.cs
- MultiTrigger.cs
- ThreadSafeList.cs
- WmlTextViewAdapter.cs
- InvalidateEvent.cs
- ToolStripItemDataObject.cs
- HttpServerUtilityBase.cs
- ResetableIterator.cs
- Package.cs
- ClientSession.cs
- DigestComparer.cs
- Blend.cs
- ClientBuildManager.cs
- HashHelper.cs
- StringUtil.cs
- Matrix3D.cs
- ContextProperty.cs
- DbConnectionPool.cs
- PeerNameResolver.cs
- MatchNoneMessageFilter.cs
- EncoderFallback.cs
- MenuAdapter.cs
- GraphicsState.cs
- BCLDebug.cs
- Page.cs