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
- HtmlInputButton.cs
- PrinterUnitConvert.cs
- Matrix3DConverter.cs
- PaperSize.cs
- WsdlBuildProvider.cs
- SqlStatistics.cs
- SigningProgress.cs
- MethodBody.cs
- DateTimeConverter2.cs
- FrameSecurityDescriptor.cs
- ErrorFormatter.cs
- ObjectFullSpanRewriter.cs
- DetailsViewUpdateEventArgs.cs
- SecurityKeyIdentifier.cs
- RadioButtonDesigner.cs
- DataRowExtensions.cs
- sqlinternaltransaction.cs
- ObjectNotFoundException.cs
- RemotingConfiguration.cs
- RunClient.cs
- DoubleUtil.cs
- ToolStripDesignerUtils.cs
- DataGridViewCellStyle.cs
- TextureBrush.cs
- EntityDataSourceState.cs
- SystemMulticastIPAddressInformation.cs
- httpapplicationstate.cs
- RightNameExpirationInfoPair.cs
- OleDbPropertySetGuid.cs
- XmlSchemaInfo.cs
- ListBox.cs
- XMLDiffLoader.cs
- TextBlock.cs
- PointConverter.cs
- XmlnsCompatibleWithAttribute.cs
- AppDomainProtocolHandler.cs
- BitmapDownload.cs
- PropertyGeneratedEventArgs.cs
- Encoder.cs
- ObjectPersistData.cs
- BezierSegment.cs
- EventLogPermission.cs
- Transactions.cs
- RowUpdatingEventArgs.cs
- StringExpressionSet.cs
- WindowsSecurityTokenAuthenticator.cs
- DataGridDesigner.cs
- SatelliteContractVersionAttribute.cs
- ScriptRegistrationManager.cs
- shaperfactoryquerycachekey.cs
- HebrewNumber.cs
- NeutralResourcesLanguageAttribute.cs
- RowParagraph.cs
- PointConverter.cs
- ClickablePoint.cs
- TimeBoundedCache.cs
- SqlDataSourceCommandEventArgs.cs
- WorkflowInstance.cs
- AlphabeticalEnumConverter.cs
- MessageDroppedTraceRecord.cs
- AuthenticatedStream.cs
- XmlSchemaNotation.cs
- DataServiceContext.cs
- TraceXPathNavigator.cs
- httpstaticobjectscollection.cs
- BatchParser.cs
- MTConfigUtil.cs
- TypeHelper.cs
- PaperSize.cs
- TextBoxRenderer.cs
- XmlSchemaAll.cs
- AppSettingsExpressionBuilder.cs
- TypeDelegator.cs
- LinkedResource.cs
- MenuScrollingVisibilityConverter.cs
- BoundsDrawingContextWalker.cs
- SslStream.cs
- CreateUserWizardDesigner.cs
- BaseUriHelper.cs
- ColumnMapTranslator.cs
- VectorCollectionConverter.cs
- Graph.cs
- ToolBar.cs
- StringKeyFrameCollection.cs
- Constants.cs
- XMLSchema.cs
- CodeValidator.cs
- MethodExpr.cs
- DataTemplate.cs
- GridViewDeletedEventArgs.cs
- ErrorWebPart.cs
- ToolTipService.cs
- InkPresenter.cs
- FlowDocument.cs
- Ref.cs
- QilNode.cs
- WindowsFormsHelpers.cs
- AsyncStreamReader.cs
- XamlSerializerUtil.cs
- ServiceDescription.cs