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
- CookieProtection.cs
- ByteAnimation.cs
- DrawingCollection.cs
- DataSourceXmlSubItemAttribute.cs
- TextLineBreak.cs
- MyContact.cs
- DataSourceNameHandler.cs
- ThicknessAnimationBase.cs
- HttpResponseWrapper.cs
- PropertyFilterAttribute.cs
- SortFieldComparer.cs
- BinaryMethodMessage.cs
- SessionStateUtil.cs
- SortQuery.cs
- TimelineGroup.cs
- ToolstripProfessionalRenderer.cs
- EventLogQuery.cs
- Stackframe.cs
- JoinElimination.cs
- BooleanFunctions.cs
- StylusPointProperty.cs
- CorrelationValidator.cs
- ToolStripItemTextRenderEventArgs.cs
- Mapping.cs
- FieldMetadata.cs
- SoapFault.cs
- GuidTagList.cs
- SQLInt16Storage.cs
- ResolveNameEventArgs.cs
- ADMembershipUser.cs
- DataGridViewImageColumn.cs
- MetadataArtifactLoader.cs
- securitycriticaldataClass.cs
- SvcMapFileSerializer.cs
- EntityDataSourceContextDisposingEventArgs.cs
- AssociationSetEnd.cs
- CorePropertiesFilter.cs
- Int64AnimationBase.cs
- AssemblyHash.cs
- MarginCollapsingState.cs
- TextServicesContext.cs
- Rotation3DAnimation.cs
- VariantWrapper.cs
- SqlBinder.cs
- HTMLTagNameToTypeMapper.cs
- TransformerConfigurationWizardBase.cs
- OSEnvironmentHelper.cs
- FactoryGenerator.cs
- CreateUserErrorEventArgs.cs
- MaterialCollection.cs
- CodeRemoveEventStatement.cs
- LocatorManager.cs
- MobileControlDesigner.cs
- SafeFileMapViewHandle.cs
- Module.cs
- WebControlParameterProxy.cs
- PolyLineSegment.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- RuntimeEnvironment.cs
- Vector3DCollectionConverter.cs
- CompositeControl.cs
- Misc.cs
- ReturnType.cs
- StrokeCollection2.cs
- Matrix.cs
- Faults.cs
- ButtonChrome.cs
- HotCommands.cs
- unitconverter.cs
- ConfigXmlSignificantWhitespace.cs
- ReferenceAssemblyAttribute.cs
- XmlSchemaFacet.cs
- RecognizerBase.cs
- AnnotationComponentManager.cs
- NumericExpr.cs
- WebResourceAttribute.cs
- HttpCookiesSection.cs
- MergeFilterQuery.cs
- XsltConvert.cs
- TimeSpanStorage.cs
- GradientStop.cs
- X509Certificate2Collection.cs
- VariableQuery.cs
- ReservationCollection.cs
- EditBehavior.cs
- MetadataSource.cs
- MarkupObject.cs
- LogicalExpr.cs
- sqlser.cs
- SocketElement.cs
- SwitchAttribute.cs
- CachedTypeface.cs
- storepermissionattribute.cs
- SHA1CryptoServiceProvider.cs
- LongAverageAggregationOperator.cs
- OraclePermission.cs
- ConfigUtil.cs
- OracleDataAdapter.cs
- DESCryptoServiceProvider.cs
- ConfigXmlAttribute.cs