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
- WorkflowApplicationAbortedEventArgs.cs
- StubHelpers.cs
- ManagedWndProcTracker.cs
- PointAnimationUsingKeyFrames.cs
- MasterPageParser.cs
- WebEventCodes.cs
- HeaderedContentControl.cs
- InkSerializer.cs
- PrimitiveXmlSerializers.cs
- SurrogateSelector.cs
- ExpressionNode.cs
- WebPartDeleteVerb.cs
- ComplexType.cs
- ReaderWriterLockSlim.cs
- DataSpaceManager.cs
- WindowsFormsHelpers.cs
- _SslState.cs
- ExpressionEditorAttribute.cs
- MD5.cs
- EntityRecordInfo.cs
- InvalidCastException.cs
- RenderData.cs
- DuplicateDetector.cs
- Converter.cs
- MenuItemCollection.cs
- VSWCFServiceContractGenerator.cs
- securitycriticaldataClass.cs
- DocumentViewerBaseAutomationPeer.cs
- InputMethodStateTypeInfo.cs
- BitVec.cs
- WebServiceHandler.cs
- DocumentSequenceHighlightLayer.cs
- BeginEvent.cs
- BaseDataListComponentEditor.cs
- SamlConditions.cs
- SectionXmlInfo.cs
- ModelItemExtensions.cs
- TripleDES.cs
- PathData.cs
- ServiceReference.cs
- ExistsInCollection.cs
- sitestring.cs
- FileLogRecordEnumerator.cs
- TypedTableBase.cs
- Axis.cs
- SystemTcpConnection.cs
- NumberFormatter.cs
- TextTreePropertyUndoUnit.cs
- VersionConverter.cs
- Aes.cs
- SqlNodeAnnotation.cs
- PriorityBindingExpression.cs
- AppDomain.cs
- GiveFeedbackEvent.cs
- DbSourceParameterCollection.cs
- ThrowHelper.cs
- StringKeyFrameCollection.cs
- RuntimeCompatibilityAttribute.cs
- OdbcHandle.cs
- Error.cs
- LabelDesigner.cs
- TextClipboardData.cs
- ScrollContentPresenter.cs
- BinaryUtilClasses.cs
- SafeUserTokenHandle.cs
- LogEntrySerializer.cs
- SharedHttpsTransportManager.cs
- DataRecordObjectView.cs
- SafePipeHandle.cs
- ContextMenuService.cs
- GorillaCodec.cs
- ColorTranslator.cs
- SrgsOneOf.cs
- PrincipalPermission.cs
- IconHelper.cs
- Util.cs
- GetPageCompletedEventArgs.cs
- CodeEntryPointMethod.cs
- OleDbDataReader.cs
- XPathScanner.cs
- ItemMap.cs
- ZipPackage.cs
- UnsafeNativeMethods.cs
- ValidatedMobileControlConverter.cs
- SQLInt64.cs
- Mutex.cs
- DataSourceControlBuilder.cs
- BuildResultCache.cs
- ExtendedTransformFactory.cs
- BaseParser.cs
- EventInfo.cs
- XmlAttribute.cs
- Registry.cs
- HelpProvider.cs
- TextEffect.cs
- FederatedMessageSecurityOverHttp.cs
- ModelService.cs
- XPathBinder.cs
- SystemException.cs
- IconConverter.cs