Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDelegate.cs / 1 / CodeTypeDelegate.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.Serialization; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTypeDelegate : CodeTypeDeclaration { private CodeParameterDeclarationExpressionCollection parameters = new CodeParameterDeclarationExpressionCollection(); private CodeTypeReference returnType; ////// Represents a class or nested class. /// ////// public CodeTypeDelegate() { TypeAttributes &= ~TypeAttributes.ClassSemanticsMask; TypeAttributes |= TypeAttributes.Class; BaseTypes.Clear(); BaseTypes.Add(new CodeTypeReference("System.Delegate")); } ////// Initializes a new instance of ///. /// /// public CodeTypeDelegate(string name) : this() { Name = name; } ////// Initializes a new instance of ///. /// /// public CodeTypeReference ReturnType { get { if (returnType == null) { returnType = new CodeTypeReference(""); } return returnType; } set { returnType = value; } } ////// Gets or sets the return type of the delegate. /// ////// public CodeParameterDeclarationExpressionCollection Parameters { get { return parameters; } } } }/// The parameters of the delegate. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListViewGroup.cs
- BaseCodeDomTreeGenerator.cs
- SevenBitStream.cs
- SoundPlayerAction.cs
- PointHitTestResult.cs
- DurableOperationAttribute.cs
- ImageBrush.cs
- DataContractJsonSerializer.cs
- GridViewRow.cs
- AttributeTable.cs
- GridViewHeaderRowPresenter.cs
- UsernameTokenFactoryCredential.cs
- SchemaMapping.cs
- BrowserTree.cs
- SystemKeyConverter.cs
- PriorityRange.cs
- NamedPermissionSet.cs
- AutomationPeer.cs
- VirtualDirectoryMappingCollection.cs
- ColumnResizeAdorner.cs
- UTF7Encoding.cs
- AssertUtility.cs
- XmlChildEnumerator.cs
- MetadataArtifactLoaderCompositeResource.cs
- CompoundFileReference.cs
- AsymmetricKeyExchangeFormatter.cs
- StandardToolWindows.cs
- MappingItemCollection.cs
- MessageContractAttribute.cs
- Merger.cs
- XmlNodeWriter.cs
- xamlnodes.cs
- TargetControlTypeAttribute.cs
- AnnotationService.cs
- ByteConverter.cs
- DependencyObjectPropertyDescriptor.cs
- RouteItem.cs
- VectorKeyFrameCollection.cs
- TypedElement.cs
- LiteralControl.cs
- BuildManager.cs
- CodeComment.cs
- InfocardChannelParameter.cs
- templategroup.cs
- ProviderException.cs
- HttpPostProtocolImporter.cs
- FontStyle.cs
- WebPartTransformerCollection.cs
- QueueProcessor.cs
- ProviderIncompatibleException.cs
- HttpModulesInstallComponent.cs
- ViewPort3D.cs
- ApplicationHost.cs
- SoundPlayer.cs
- ToolBarButtonClickEvent.cs
- InvokeCompletedEventArgs.cs
- UserThread.cs
- ProfilePropertyNameValidator.cs
- FileAuthorizationModule.cs
- NativeCompoundFileAPIs.cs
- DelegatingTypeDescriptionProvider.cs
- MetabaseServerConfig.cs
- ToolTip.cs
- MissingMemberException.cs
- Int64KeyFrameCollection.cs
- BoundField.cs
- ConnectionPointCookie.cs
- HtmlHistory.cs
- ListItemParagraph.cs
- ViewManager.cs
- DataGridViewColumn.cs
- X509CertificateChain.cs
- AssociationSet.cs
- LinearGradientBrush.cs
- DrawingAttributes.cs
- TreeNodeCollection.cs
- Pair.cs
- ProcessInputEventArgs.cs
- UpdatePanel.cs
- XmlBinaryWriterSession.cs
- ArgumentDesigner.xaml.cs
- TypeConverter.cs
- PropertyMetadata.cs
- TemplateBindingExpressionConverter.cs
- EmptyControlCollection.cs
- HostUtils.cs
- Int64AnimationUsingKeyFrames.cs
- PlatformCulture.cs
- TreeWalker.cs
- ConstrainedGroup.cs
- HashStream.cs
- PagedDataSource.cs
- RoleService.cs
- DataGridViewControlCollection.cs
- MarkupExtensionParser.cs
- DataServiceContext.cs
- MouseEvent.cs
- AnnotationHighlightLayer.cs
- PreservationFileWriter.cs
- OracleBinary.cs