Code:
/ 4.0 / 4.0 / 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. 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
- ConnectionPoolManager.cs
- HttpContextBase.cs
- DataGridViewComboBoxCell.cs
- InterleavedZipPartStream.cs
- LogReserveAndAppendState.cs
- FileLoadException.cs
- HierarchicalDataBoundControl.cs
- ErrorHandler.cs
- MemoryRecordBuffer.cs
- UnsafeNativeMethods.cs
- NodeInfo.cs
- _NegotiateClient.cs
- RealProxy.cs
- SmtpReplyReaderFactory.cs
- PathSegmentCollection.cs
- DbResourceAllocator.cs
- PolygonHotSpot.cs
- GridLength.cs
- CharAnimationBase.cs
- TCPListener.cs
- PassportIdentity.cs
- DockPanel.cs
- InstanceDataCollection.cs
- ListViewUpdateEventArgs.cs
- WsatServiceCertificate.cs
- ButtonPopupAdapter.cs
- PropertyState.cs
- MimeMultiPart.cs
- AutomationProperty.cs
- TreeNodeCollection.cs
- RegionData.cs
- MultiByteCodec.cs
- CryptoHandle.cs
- ToolboxDataAttribute.cs
- MappingModelBuildProvider.cs
- ListBindingHelper.cs
- BooleanSwitch.cs
- DefinitionBase.cs
- VariableQuery.cs
- ClaimTypeElementCollection.cs
- QilStrConcat.cs
- Wizard.cs
- DynamicQueryableWrapper.cs
- Int32CollectionConverter.cs
- ObservableDictionary.cs
- FontFamilyValueSerializer.cs
- Pts.cs
- XmlBinaryReader.cs
- ScriptResourceInfo.cs
- WindowsStatusBar.cs
- TableLayoutPanelCellPosition.cs
- XmlSchemaProviderAttribute.cs
- TraceLog.cs
- DelegateCompletionCallbackWrapper.cs
- HealthMonitoringSection.cs
- Tracking.cs
- MediaContextNotificationWindow.cs
- VisualBrush.cs
- DataGridColumnStyleMappingNameEditor.cs
- EntityDataSourceConfigureObjectContext.cs
- DisplayInformation.cs
- ErrorFormatter.cs
- WindowsProgressbar.cs
- ContentPlaceHolder.cs
- MessageSmuggler.cs
- ProviderConnectionPoint.cs
- FileAuthorizationModule.cs
- XpsSerializationException.cs
- UrlPath.cs
- DataServiceException.cs
- EDesignUtil.cs
- Int16Storage.cs
- GradientBrush.cs
- CompleteWizardStep.cs
- XmlTextReaderImpl.cs
- VerificationAttribute.cs
- SelectedGridItemChangedEvent.cs
- ExtensibleClassFactory.cs
- Int32Rect.cs
- TableRow.cs
- TableDetailsRow.cs
- SR.cs
- AttributeCollection.cs
- WebPartPersonalization.cs
- WebErrorHandler.cs
- SmtpTransport.cs
- TextSelectionHighlightLayer.cs
- PeerUnsafeNativeMethods.cs
- XmlSchemaExternal.cs
- MatrixConverter.cs
- StringConverter.cs
- Vector3DAnimation.cs
- TypeDescriptor.cs
- InspectionWorker.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SettingsPropertyIsReadOnlyException.cs
- AttributeEmitter.cs
- ExecutionEngineException.cs
- ExpressionBuilderCollection.cs
- DataGridViewTopLeftHeaderCell.cs