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
- BaseProcessProtocolHandler.cs
- DatePickerTextBox.cs
- KeyValuePairs.cs
- BitmapEffectInputData.cs
- X509ClientCertificateAuthentication.cs
- TrayIconDesigner.cs
- GregorianCalendarHelper.cs
- QilXmlReader.cs
- MulticastDelegate.cs
- handlecollector.cs
- DbgUtil.cs
- CacheOutputQuery.cs
- DataRecordInternal.cs
- RegexFCD.cs
- LineSegment.cs
- ListViewItemSelectionChangedEvent.cs
- DetailsViewUpdateEventArgs.cs
- KnownBoxes.cs
- FontFamily.cs
- TableCellCollection.cs
- AttributeUsageAttribute.cs
- ProviderUtil.cs
- WindowCollection.cs
- WebServiceHandlerFactory.cs
- List.cs
- EditorPart.cs
- CriticalHandle.cs
- TextDecoration.cs
- DBDataPermissionAttribute.cs
- PriorityQueue.cs
- EpmContentDeSerializer.cs
- Utils.cs
- ElasticEase.cs
- ComponentResourceKeyConverter.cs
- DelimitedListTraceListener.cs
- HttpVersion.cs
- ValueUtilsSmi.cs
- XmlNodeChangedEventArgs.cs
- ConstrainedDataObject.cs
- NullReferenceException.cs
- ScriptReference.cs
- XmlUtf8RawTextWriter.cs
- SdlChannelSink.cs
- WrappedIUnknown.cs
- FixedSOMLineCollection.cs
- NamedPermissionSet.cs
- Lease.cs
- DebugView.cs
- SrgsNameValueTag.cs
- DefaultAsyncDataDispatcher.cs
- designeractionbehavior.cs
- MetadataWorkspace.cs
- AnnotationAdorner.cs
- MgmtConfigurationRecord.cs
- Baml2006Reader.cs
- PageContent.cs
- PartitionedDataSource.cs
- Path.cs
- XmlSchemaSimpleTypeRestriction.cs
- XmlDataSourceNodeDescriptor.cs
- AssemblyAssociatedContentFileAttribute.cs
- FastPropertyAccessor.cs
- AppearanceEditorPart.cs
- NumberSubstitution.cs
- NestPullup.cs
- OleDbConnectionFactory.cs
- DataSourceBooleanViewSchemaConverter.cs
- SqlRowUpdatedEvent.cs
- SoapHelper.cs
- SqlMultiplexer.cs
- MediaElementAutomationPeer.cs
- parserscommon.cs
- MetaData.cs
- UTF32Encoding.cs
- XmlSchemaComplexContentRestriction.cs
- HwndKeyboardInputProvider.cs
- SettingsBase.cs
- DrawingImage.cs
- IteratorFilter.cs
- ImplicitInputBrush.cs
- HttpWebRequest.cs
- IntranetCredentialPolicy.cs
- DuplexSecurityProtocolFactory.cs
- FlowLayoutPanel.cs
- HtmlButton.cs
- Privilege.cs
- PropertyPanel.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ColorConverter.cs
- ReceiveParametersContent.cs
- ExpressionBuilderCollection.cs
- AttachedPropertyMethodSelector.cs
- ValueConversionAttribute.cs
- FrameworkContentElement.cs
- BamlTreeMap.cs
- PtsCache.cs
- XmlSerializerVersionAttribute.cs
- ColumnWidthChangingEvent.cs
- StylusSystemGestureEventArgs.cs
- CngProvider.cs