Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / CodeGeneration / CodeGeneratorAttribute.cs / 1305376 / CodeGeneratorAttribute.cs
namespace System.Workflow.ComponentModel.Compiler { [AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)] public sealed class ActivityCodeGeneratorAttribute : Attribute { string codeGeneratorTypeName = null; public ActivityCodeGeneratorAttribute(Type codeGeneratorType) { if (codeGeneratorType == null) throw new ArgumentNullException("codeGeneratorType"); if (!typeof(ActivityCodeGenerator).IsAssignableFrom(codeGeneratorType)) throw new ArgumentException(SR.GetString(SR.Error_NotCodeGeneratorType), "codeGeneratorType"); if (codeGeneratorType.GetConstructor(new Type[0] { }) == null) throw new ArgumentException(SR.GetString(SR.Error_MissingDefaultConstructor, codeGeneratorType.FullName), "codeGeneratorType"); this.codeGeneratorTypeName = codeGeneratorType.AssemblyQualifiedName; } public ActivityCodeGeneratorAttribute(string codeGeneratorTypeName) { if (codeGeneratorTypeName == null) throw new ArgumentNullException("codeGeneratorTypeName"); this.codeGeneratorTypeName = codeGeneratorTypeName; } public string CodeGeneratorTypeName { get { return this.codeGeneratorTypeName; } } } } // 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
- SourceElementsCollection.cs
- DataGridViewBand.cs
- PenThreadPool.cs
- wmiprovider.cs
- WebPartRestoreVerb.cs
- ViewStateModeByIdAttribute.cs
- SessionParameter.cs
- SafeTimerHandle.cs
- PresentationTraceSources.cs
- OutputCacheSection.cs
- TypeHelper.cs
- CollectionConverter.cs
- VerificationAttribute.cs
- TextTreeTextElementNode.cs
- BeginStoryboard.cs
- EllipseGeometry.cs
- ElementMarkupObject.cs
- DispatchWrapper.cs
- SelectionChangedEventArgs.cs
- EdgeProfileValidation.cs
- ErrorView.xaml.cs
- ActivityPreviewDesigner.cs
- PerformanceCounterPermission.cs
- XPathDocument.cs
- DependencyObjectPropertyDescriptor.cs
- CqlLexer.cs
- PackageProperties.cs
- WmfPlaceableFileHeader.cs
- ListViewCancelEventArgs.cs
- ScriptingProfileServiceSection.cs
- PlainXmlWriter.cs
- TreeViewAutomationPeer.cs
- CSharpCodeProvider.cs
- StatusInfoItem.cs
- listitem.cs
- WorkflowTransactionOptions.cs
- ClientUtils.cs
- WebProxyScriptElement.cs
- SmiRequestExecutor.cs
- Hyperlink.cs
- UrlMappingsSection.cs
- WebPartConnectionsDisconnectVerb.cs
- SingleStorage.cs
- ValidationHelpers.cs
- MissingMemberException.cs
- IconConverter.cs
- Select.cs
- TypefaceMetricsCache.cs
- EntityTypeEmitter.cs
- DesignerActionHeaderItem.cs
- GlyphsSerializer.cs
- XmlEventCache.cs
- UserControlParser.cs
- BlockUIContainer.cs
- XmlUtilWriter.cs
- AmbientProperties.cs
- RemoteX509AsymmetricSecurityKey.cs
- PriorityBindingExpression.cs
- MediaScriptCommandRoutedEventArgs.cs
- PointLight.cs
- TypeTypeConverter.cs
- PaintEvent.cs
- AccessViolationException.cs
- ListViewItem.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- BamlMapTable.cs
- PersonalizationState.cs
- DataSourceSelectArguments.cs
- Rights.cs
- UpdateExpressionVisitor.cs
- DataGridHyperlinkColumn.cs
- ForeignKeyConstraint.cs
- NativeMethods.cs
- Control.cs
- DictionaryContent.cs
- GcSettings.cs
- RootNamespaceAttribute.cs
- HostExecutionContextManager.cs
- TextEditorLists.cs
- Accessors.cs
- List.cs
- TextSpan.cs
- TextParaClient.cs
- FilteredAttributeCollection.cs
- XPathPatternParser.cs
- ViewBox.cs
- TextBoxBase.cs
- FaultImportOptions.cs
- _OverlappedAsyncResult.cs
- ExtensionQuery.cs
- LogFlushAsyncResult.cs
- InkCollectionBehavior.cs
- TrustLevel.cs
- ClusterRegistryConfigurationProvider.cs
- SafeFileMappingHandle.cs
- EventItfInfo.cs
- RefreshEventArgs.cs
- FileDialogPermission.cs
- LabelDesigner.cs
- ParameterToken.cs