Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDelegate.cs / 1305376 / CodeTypeDelegate.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The parameters of the delegate. /// ///// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// The parameters of the delegate. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrustLevelCollection.cs
- DataGridItemEventArgs.cs
- DataGridCommandEventArgs.cs
- WebBrowserNavigatingEventHandler.cs
- MatrixKeyFrameCollection.cs
- OrderPreservingPipeliningMergeHelper.cs
- NumberSubstitution.cs
- DoubleCollectionConverter.cs
- WindowsFormsSynchronizationContext.cs
- CompositeClientFormatter.cs
- WebServiceResponse.cs
- ServiceOperationUIEditor.cs
- MiniAssembly.cs
- InvokeHandlers.cs
- FormViewCommandEventArgs.cs
- StreamHelper.cs
- Properties.cs
- RolePrincipal.cs
- TableColumnCollection.cs
- SafeTokenHandle.cs
- InheritanceUI.cs
- StreamedWorkflowDefinitionContext.cs
- EdmValidator.cs
- DataKeyCollection.cs
- PointValueSerializer.cs
- QueryableFilterRepeater.cs
- InteropExecutor.cs
- ExpressionVisitor.cs
- ConstrainedDataObject.cs
- DomNameTable.cs
- MessageSecurityOverTcp.cs
- GACIdentityPermission.cs
- DataGridViewLinkColumn.cs
- DomNameTable.cs
- XmlAttributeCache.cs
- GeneralTransform.cs
- DataBoundControl.cs
- WpfWebRequestHelper.cs
- PassportAuthenticationModule.cs
- Drawing.cs
- PeerCustomResolverElement.cs
- AuthenticationConfig.cs
- MenuScrollingVisibilityConverter.cs
- XmlSchemaRedefine.cs
- BamlVersionHeader.cs
- DataServiceQueryException.cs
- DependencyPropertyValueSerializer.cs
- RowToFieldTransformer.cs
- MetabaseServerConfig.cs
- BulletedList.cs
- IdentitySection.cs
- AppSettingsReader.cs
- ImageListImageEditor.cs
- Trace.cs
- CodeAttachEventStatement.cs
- OleDbWrapper.cs
- ListItemParagraph.cs
- RadioButtonAutomationPeer.cs
- UseAttributeSetsAction.cs
- ControlAdapter.cs
- RtType.cs
- OdbcEnvironmentHandle.cs
- XmlWriterDelegator.cs
- WindowsListBox.cs
- PolyQuadraticBezierSegment.cs
- ResourceDescriptionAttribute.cs
- AggregateException.cs
- TreeNodeStyle.cs
- TypeDescriptor.cs
- ServicePoint.cs
- securitymgrsite.cs
- SourceInterpreter.cs
- QueueProcessor.cs
- CounterCreationDataCollection.cs
- AuthorizationRuleCollection.cs
- BitmapImage.cs
- TransformValueSerializer.cs
- DelegatedStream.cs
- LineServicesRun.cs
- PropertyDescriptorCollection.cs
- Span.cs
- SqlConnectionFactory.cs
- EndpointFilterProvider.cs
- ComboBox.cs
- ColumnResult.cs
- PropertyChangedEventArgs.cs
- ToolStripSettings.cs
- NetMsmqBindingCollectionElement.cs
- WebContext.cs
- DataGridHeaderBorder.cs
- EventSourceCreationData.cs
- NumberSubstitution.cs
- EventArgs.cs
- ResourceAssociationSet.cs
- RecognizedAudio.cs
- ToolStripItemRenderEventArgs.cs
- WebBrowserContainer.cs
- UdpTransportSettingsElement.cs
- QilTernary.cs
- EntityDataSourceDataSelection.cs