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
- WebPartEditVerb.cs
- BindValidator.cs
- CloseCollectionAsyncResult.cs
- UnknownBitmapDecoder.cs
- ToolStripArrowRenderEventArgs.cs
- CheckBoxBaseAdapter.cs
- PropertyGeneratedEventArgs.cs
- TemplatePartAttribute.cs
- MyContact.cs
- QueryResults.cs
- UIElement3D.cs
- DrawListViewColumnHeaderEventArgs.cs
- DataGridCaption.cs
- PersonalizationProviderCollection.cs
- WindowsIdentity.cs
- ProgressBar.cs
- TripleDES.cs
- Rect3DConverter.cs
- ActivationArguments.cs
- BackgroundWorker.cs
- ObjectCloneHelper.cs
- TrackingServices.cs
- XmlEntity.cs
- WinFormsComponentEditor.cs
- DiffuseMaterial.cs
- GrammarBuilderBase.cs
- CatalogPartChrome.cs
- TableAdapterManagerNameHandler.cs
- DesignerResources.cs
- _SecureChannel.cs
- PrtTicket_Public_Simple.cs
- DataListItemEventArgs.cs
- FrameSecurityDescriptor.cs
- PromptStyle.cs
- HttpRawResponse.cs
- SkipQueryOptionExpression.cs
- SamlAuthorityBinding.cs
- WizardSideBarListControlItem.cs
- AlternateView.cs
- ToolStripContainer.cs
- Point4DValueSerializer.cs
- LinkLabel.cs
- BezierSegment.cs
- AuthorizationRuleCollection.cs
- Int16AnimationBase.cs
- DatatypeImplementation.cs
- SQLResource.cs
- DetailsViewRowCollection.cs
- CookielessData.cs
- HtmlProps.cs
- StopRoutingHandler.cs
- QueryRewriter.cs
- EntityContainerAssociationSet.cs
- DataGridViewColumnCollection.cs
- Walker.cs
- Attributes.cs
- SystemUdpStatistics.cs
- TimeSpanValidator.cs
- MembershipPasswordException.cs
- ImageBrush.cs
- RequestQueryProcessor.cs
- Internal.cs
- SingleTagSectionHandler.cs
- DecimalConverter.cs
- OleDbTransaction.cs
- TextDecorations.cs
- BoundingRectTracker.cs
- MessageBox.cs
- TreeNodeCollection.cs
- UnmanagedMemoryAccessor.cs
- AppDomainAttributes.cs
- mediaeventshelper.cs
- FontConverter.cs
- SqlException.cs
- ZipIOExtraFieldPaddingElement.cs
- BoolLiteral.cs
- IisNotInstalledException.cs
- LinkedResource.cs
- MouseBinding.cs
- NumberFormatInfo.cs
- JournalNavigationScope.cs
- GenericEnumConverter.cs
- MessageDecoder.cs
- DiscriminatorMap.cs
- _AutoWebProxyScriptHelper.cs
- AutoGeneratedField.cs
- ObjectPersistData.cs
- AssemblyNameProxy.cs
- ResolveNameEventArgs.cs
- QueryStatement.cs
- SettingsContext.cs
- WindowsListViewGroupHelper.cs
- ColumnBinding.cs
- ExceptionRoutedEventArgs.cs
- SqlClientWrapperSmiStream.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ErasingStroke.cs
- ConnectionStringSettingsCollection.cs
- Membership.cs
- FreeFormDragDropManager.cs