Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Design / ExtenderHelpers.cs / 1305376 / ExtenderHelpers.cs
#pragma warning disable 1634, 1691 namespace System.Workflow.ComponentModel.Design { using System; using System.IO; using System.Drawing; using System.CodeDom; using System.Diagnostics; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; using System.ComponentModel; using System.Globalization; using System.Drawing.Design; using System.Drawing.Imaging; using System.Drawing.Drawing2D; using System.Windows.Forms.Design; using System.ComponentModel.Design; using System.Collections.Specialized; using System.ComponentModel.Design.Serialization; using System.Workflow.ComponentModel.Compiler; using System.Workflow.ComponentModel.Serialization; using System.Collections.ObjectModel; using System.Reflection; using System.Workflow.ComponentModel.Design; using System.Runtime.Serialization.Formatters.Binary; // #region Class ExtenderHelpers internal static class ExtenderHelpers { internal static void FilterDependencyProperties(IServiceProvider serviceProvider, Activity activity) { IExtenderListService extenderListService = serviceProvider.GetService(typeof(IExtenderListService)) as IExtenderListService; if (extenderListService != null) { DictionarydependencyProperyies = new Dictionary (); foreach (DependencyProperty property in activity.MetaDependencyProperties) dependencyProperyies.Add(property.Name, property); List disallowedProperties = new List (); foreach (IExtenderProvider extenderProvider in extenderListService.GetExtenderProviders()) { if (!extenderProvider.CanExtend(activity)) { ProvidePropertyAttribute[] propertyAttributes = extenderProvider.GetType().GetCustomAttributes(typeof(ProvidePropertyAttribute), true) as ProvidePropertyAttribute[]; foreach (ProvidePropertyAttribute propertyAttribute in propertyAttributes) disallowedProperties.Add(propertyAttribute.PropertyName); } } foreach (string propertyName in disallowedProperties) { if (dependencyProperyies.ContainsKey(propertyName)) activity.RemoveProperty(dependencyProperyies[propertyName]); } } } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Hash.cs
- RequestQueryParser.cs
- ParseHttpDate.cs
- Maps.cs
- ListenerConnectionDemuxer.cs
- LogAppendAsyncResult.cs
- AsyncWaitHandle.cs
- Divide.cs
- XamlLoadErrorInfo.cs
- VolatileEnlistmentState.cs
- SplitterPanelDesigner.cs
- BitmapImage.cs
- SynchronizationContext.cs
- SiteMapNodeItem.cs
- HttpModulesSection.cs
- QueryCreatedEventArgs.cs
- PhotoPrintingIntent.cs
- RegistryKey.cs
- odbcmetadatafactory.cs
- OdbcConnectionPoolProviderInfo.cs
- DoubleAnimationUsingKeyFrames.cs
- ApplicationContext.cs
- ClientSideQueueItem.cs
- CookieParameter.cs
- Int32CollectionValueSerializer.cs
- MenuItemBinding.cs
- GiveFeedbackEventArgs.cs
- CultureInfoConverter.cs
- DataGridLinkButton.cs
- PageCatalogPart.cs
- AspNetHostingPermission.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- RtfToXamlReader.cs
- fixedPageContentExtractor.cs
- CertificateManager.cs
- CommandCollectionEditor.cs
- Item.cs
- WebConfigurationHostFileChange.cs
- PersistenceTypeAttribute.cs
- OracleBoolean.cs
- SimpleTypeResolver.cs
- RouteItem.cs
- PowerModeChangedEventArgs.cs
- ExpressionQuoter.cs
- JsonUriDataContract.cs
- WinEventWrap.cs
- ResourceExpressionBuilder.cs
- UpdatePanel.cs
- SmtpReplyReaderFactory.cs
- MonitoringDescriptionAttribute.cs
- arabicshape.cs
- SqlBooleanMismatchVisitor.cs
- WebPartDisplayMode.cs
- AppearanceEditorPart.cs
- ImageDrawing.cs
- SecurityTokenResolver.cs
- BoolExpr.cs
- OptimalBreakSession.cs
- Attribute.cs
- ToolboxItemFilterAttribute.cs
- DivideByZeroException.cs
- DbExpressionVisitor_TResultType.cs
- MetaType.cs
- SecurityTokenProvider.cs
- Walker.cs
- WindowShowOrOpenTracker.cs
- Helpers.cs
- ExpressionWriter.cs
- ProfileServiceManager.cs
- AssemblyAssociatedContentFileAttribute.cs
- MediaScriptCommandRoutedEventArgs.cs
- EntityModelBuildProvider.cs
- EdmProperty.cs
- FormViewUpdateEventArgs.cs
- ProtectedConfiguration.cs
- Control.cs
- RegexWorker.cs
- BindingMemberInfo.cs
- PingOptions.cs
- ControlAdapter.cs
- BCLDebug.cs
- DispatcherExceptionEventArgs.cs
- StringArrayConverter.cs
- CursorConverter.cs
- AutomationPatternInfo.cs
- SafeFindHandle.cs
- CodeGroup.cs
- ImageMapEventArgs.cs
- RootNamespaceAttribute.cs
- GetLastErrorDetailsRequest.cs
- LoginViewDesigner.cs
- XsltLoader.cs
- XPathNavigatorReader.cs
- ConditionalAttribute.cs
- VectorAnimation.cs
- IpcClientManager.cs
- FilterException.cs
- BackEase.cs
- ListenerServiceInstallComponent.cs
- KeyValuePair.cs