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
- Task.cs
- QuaternionIndependentAnimationStorage.cs
- XmlSerializerImportOptions.cs
- ScaleTransform.cs
- PageThemeParser.cs
- HttpPostedFile.cs
- UnknownBitmapDecoder.cs
- Delegate.cs
- PackWebRequest.cs
- XmlUtf8RawTextWriter.cs
- AssociationSet.cs
- _UriTypeConverter.cs
- MultiPageTextView.cs
- DeviceContext.cs
- SigningCredentials.cs
- XmlNodeChangedEventManager.cs
- BrushValueSerializer.cs
- AccessDataSource.cs
- InfoCardTraceRecord.cs
- ListItemConverter.cs
- SiteMapNodeItemEventArgs.cs
- CellCreator.cs
- LogicalExpr.cs
- VSWCFServiceContractGenerator.cs
- localization.cs
- COSERVERINFO.cs
- SubMenuStyleCollection.cs
- Speller.cs
- DataKey.cs
- SiteMapNode.cs
- ConsoleTraceListener.cs
- ASCIIEncoding.cs
- BinHexEncoder.cs
- TypeUsage.cs
- TrustManagerMoreInformation.cs
- RuleAction.cs
- JoinSymbol.cs
- ProviderConnectionPoint.cs
- ValidationSummary.cs
- ItemCollection.cs
- StrokeRenderer.cs
- ResourceExpressionBuilder.cs
- ScrollChrome.cs
- HttpCapabilitiesBase.cs
- ConfigXmlElement.cs
- UIElement.cs
- SubclassTypeValidatorAttribute.cs
- FileLogRecordHeader.cs
- CheckPair.cs
- ConstraintStruct.cs
- Subtree.cs
- TaiwanLunisolarCalendar.cs
- LiteralTextContainerControlBuilder.cs
- TextRangeBase.cs
- ChineseLunisolarCalendar.cs
- TextServicesManager.cs
- MsmqAppDomainProtocolHandler.cs
- EntitySqlQueryCacheKey.cs
- BaseResourcesBuildProvider.cs
- DataGridCellsPanel.cs
- DocobjHost.cs
- TextServicesCompartment.cs
- MD5HashHelper.cs
- PeerPresenceInfo.cs
- EpmTargetPathSegment.cs
- HandleRef.cs
- FixedSOMPageConstructor.cs
- RowUpdatedEventArgs.cs
- SignatureDescription.cs
- DropShadowEffect.cs
- DataColumnCollection.cs
- WmpBitmapDecoder.cs
- BindingManagerDataErrorEventArgs.cs
- NavigationProgressEventArgs.cs
- GradientStop.cs
- X509ChainPolicy.cs
- WpfKnownType.cs
- BooleanAnimationUsingKeyFrames.cs
- ToolStripDesigner.cs
- HijriCalendar.cs
- XmlSchemaSimpleContent.cs
- DbSource.cs
- CompilerWrapper.cs
- LineUtil.cs
- Effect.cs
- ResourcesBuildProvider.cs
- SqlRecordBuffer.cs
- WindowInteropHelper.cs
- Peer.cs
- NotCondition.cs
- UriTemplateLiteralQueryValue.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- MimeTypeAttribute.cs
- SelectionPattern.cs
- LinkedResource.cs
- ToolStripStatusLabel.cs
- ConfigViewGenerator.cs
- MetricEntry.cs
- EncodingFallbackAwareXmlTextWriter.cs
- Source.cs