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
- _SpnDictionary.cs
- PrinterUnitConvert.cs
- DataListCommandEventArgs.cs
- SchemaEntity.cs
- IntegerCollectionEditor.cs
- ObjectTag.cs
- CacheChildrenQuery.cs
- BrowserCapabilitiesCompiler.cs
- ParamArrayAttribute.cs
- Hex.cs
- DynamicArgumentDialog.cs
- SqlRecordBuffer.cs
- EdmProviderManifest.cs
- DashStyle.cs
- BaseComponentEditor.cs
- XsdSchemaFileEditor.cs
- ListViewGroupItemCollection.cs
- WindowsListViewSubItem.cs
- Label.cs
- SHA1CryptoServiceProvider.cs
- DynamicMetaObjectBinder.cs
- filewebresponse.cs
- XmlSignatureProperties.cs
- PageThemeBuildProvider.cs
- ToolboxDataAttribute.cs
- WindowsFormsHostAutomationPeer.cs
- OleDbRowUpdatedEvent.cs
- AuthenticationModulesSection.cs
- CompilerParameters.cs
- GestureRecognizer.cs
- CodeGotoStatement.cs
- HideDisabledControlAdapter.cs
- StringFormat.cs
- XPathNodeHelper.cs
- DragDrop.cs
- ListDataBindEventArgs.cs
- ComponentChangingEvent.cs
- HashCodeCombiner.cs
- SocketException.cs
- CharConverter.cs
- ControlParameter.cs
- TypeGeneratedEventArgs.cs
- ResXResourceReader.cs
- ResourcePermissionBaseEntry.cs
- DocumentPageHost.cs
- Duration.cs
- SizeConverter.cs
- SqlDataSourceFilteringEventArgs.cs
- wmiprovider.cs
- RubberbandSelector.cs
- mediaclock.cs
- PageContentCollection.cs
- DBNull.cs
- PolicyException.cs
- TraceSection.cs
- WhiteSpaceTrimStringConverter.cs
- Stream.cs
- TextRangeEdit.cs
- SimpleApplicationHost.cs
- ListViewItem.cs
- WorkflowDefinitionDispenser.cs
- RouteData.cs
- RealizationDrawingContextWalker.cs
- RequestCachePolicyConverter.cs
- BaseDataBoundControl.cs
- DecoderBestFitFallback.cs
- ProfileProvider.cs
- CqlLexerHelpers.cs
- FailedToStartupUIException.cs
- SmtpAuthenticationManager.cs
- ActivityWithResultValueSerializer.cs
- ResourceSet.cs
- GPRECTF.cs
- ListDataBindEventArgs.cs
- SafeHandle.cs
- XmlSchemaException.cs
- SqlResolver.cs
- XXXInfos.cs
- OracleNumber.cs
- EpmAttributeNameBuilder.cs
- DebugController.cs
- CDSsyncETWBCLProvider.cs
- GlyphTypeface.cs
- CodeArgumentReferenceExpression.cs
- _LoggingObject.cs
- RenderingEventArgs.cs
- ComboBoxHelper.cs
- XmlImplementation.cs
- LostFocusEventManager.cs
- SpellerHighlightLayer.cs
- TimerEventSubscriptionCollection.cs
- MostlySingletonList.cs
- UnsafePeerToPeerMethods.cs
- ArglessEventHandlerProxy.cs
- cookieexception.cs
- LineMetrics.cs
- Pair.cs
- Formatter.cs
- StringBlob.cs
- _UncName.cs