Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / CodeGeneration / CodeGenerationManager.cs / 1305376 / CodeGenerationManager.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.ComponentModel.Design.Serialization; using System.Collections; using System.Collections.Generic; #region CodeGenerationManager public sealed class CodeGenerationManager : IServiceProvider { private Hashtable hashOfGenerators = new Hashtable(); private IServiceProvider serviceProvider = null; private ContextStack context = null; public CodeGenerationManager(IServiceProvider serviceProvider) { this.serviceProvider = serviceProvider; } public ContextStack Context { get { if (this.context == null) this.context = new ContextStack(); return this.context; } } #region IServiceProvider Members public object GetService(Type serviceType) { if (this.serviceProvider == null) return null; return this.serviceProvider.GetService(serviceType); } #endregion public ActivityCodeGenerator[] GetCodeGenerators(Type type) { if (type == null) throw new ArgumentNullException("type"); if (this.hashOfGenerators.Contains(type)) return ((List)this.hashOfGenerators[type]).ToArray(); List generators = new List (); // Return validators for other types such as Bind, XmolDocument, etc. foreach (ActivityCodeGenerator generator in ComponentDispenser.CreateComponents(type, typeof(ActivityCodeGeneratorAttribute))) { generators.Add(generator); } this.hashOfGenerators[type] = generators; return generators.ToArray(); } } #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
- Rectangle.cs
- WebBaseEventKeyComparer.cs
- Triplet.cs
- ReferentialConstraintRoleElement.cs
- HierarchicalDataSourceControl.cs
- EventProviderClassic.cs
- XmlSchemaAnnotation.cs
- StructuredType.cs
- TypeConverter.cs
- MobileControlsSectionHelper.cs
- XamlReader.cs
- ObjectDataSourceFilteringEventArgs.cs
- InfiniteIntConverter.cs
- DataSourceXmlClassAttribute.cs
- RewritingSimplifier.cs
- ExtendedPropertyCollection.cs
- GetLastErrorDetailsRequest.cs
- FormsIdentity.cs
- SqlWorkflowPersistenceService.cs
- PathFigureCollection.cs
- EncryptedKey.cs
- DropShadowEffect.cs
- MembershipValidatePasswordEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- ISAPIApplicationHost.cs
- MergeFilterQuery.cs
- TableRow.cs
- ActivityLocationReferenceEnvironment.cs
- ServiceSettingsResponseInfo.cs
- AuthStoreRoleProvider.cs
- RichTextBox.cs
- XamlPointCollectionSerializer.cs
- baseaxisquery.cs
- SqlDataSourceStatusEventArgs.cs
- DescendantBaseQuery.cs
- WbmpConverter.cs
- ConfigPathUtility.cs
- RunClient.cs
- FlowSwitch.cs
- WebPartEditorCancelVerb.cs
- WebBrowserEvent.cs
- WindowsStatusBar.cs
- IndividualDeviceConfig.cs
- ProviderException.cs
- ParserExtension.cs
- ProcessHostFactoryHelper.cs
- StatusBarItem.cs
- COM2PropertyDescriptor.cs
- EntityDataSourceColumn.cs
- DesignerDataStoredProcedure.cs
- ApplicationSecurityInfo.cs
- SelectQueryOperator.cs
- Soap.cs
- FacetEnabledSchemaElement.cs
- WebPart.cs
- XmlBinaryReader.cs
- ProviderConnectionPoint.cs
- JoinElimination.cs
- QilInvokeEarlyBound.cs
- MeasureData.cs
- HtmlElementErrorEventArgs.cs
- PathData.cs
- Quaternion.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- Grid.cs
- UInt16.cs
- _HeaderInfoTable.cs
- HandledMouseEvent.cs
- WebBrowsableAttribute.cs
- SplitterCancelEvent.cs
- PageThemeBuildProvider.cs
- ZipIOModeEnforcingStream.cs
- XmlDataSourceView.cs
- DataGridRelationshipRow.cs
- EdmItemCollection.cs
- CustomDictionarySources.cs
- ThreadStartException.cs
- XmlChoiceIdentifierAttribute.cs
- DrawingContextWalker.cs
- WebSysDisplayNameAttribute.cs
- BinaryFormatter.cs
- MouseActionValueSerializer.cs
- CrossContextChannel.cs
- IisTraceWebEventProvider.cs
- PerformanceCounterManager.cs
- unitconverter.cs
- SqlSupersetValidator.cs
- Utilities.cs
- MapPathBasedVirtualPathProvider.cs
- ManualResetEvent.cs
- MouseOverProperty.cs
- SelfIssuedTokenFactoryCredential.cs
- OdbcEnvironmentHandle.cs
- XamlFxTrace.cs
- XmlSerializerFaultFormatter.cs
- LinqDataSourceValidationException.cs
- DataGridViewHeaderCell.cs
- CommandLineParser.cs
- SqlNamer.cs
- FlowDocumentPageViewerAutomationPeer.cs