Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The parameters of the delegate. /// ///// 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; } } } } // 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
- input.cs
- WindowsGrip.cs
- HitTestParameters3D.cs
- SettingsSection.cs
- WindowsListViewGroupSubsetLink.cs
- DynamicPropertyReader.cs
- ToolStripDropDownMenu.cs
- ResXResourceWriter.cs
- Queue.cs
- DataContractJsonSerializerOperationBehavior.cs
- SystemResourceHost.cs
- HtmlInputText.cs
- DesignBindingPicker.cs
- CardSpaceShim.cs
- StaticTextPointer.cs
- CombinedGeometry.cs
- TextServicesLoader.cs
- InvalidMessageContractException.cs
- GeneralEndpointIdentity.cs
- CustomAttributeBuilder.cs
- CheckBox.cs
- MeshGeometry3D.cs
- AttributeEmitter.cs
- VisualTreeUtils.cs
- cache.cs
- QueueTransferProtocol.cs
- Preprocessor.cs
- ButtonColumn.cs
- ExpressionPrefixAttribute.cs
- DataControlButton.cs
- PenThreadWorker.cs
- AsyncPostBackErrorEventArgs.cs
- ScriptManager.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ZipIOModeEnforcingStream.cs
- HtmlTableCell.cs
- HttpRequest.cs
- ListSortDescription.cs
- SqlProcedureAttribute.cs
- StringResourceManager.cs
- Size.cs
- FilteredDataSetHelper.cs
- TextEndOfSegment.cs
- SynchronizedDispatch.cs
- PropertyChangedEventArgs.cs
- TrackingLocation.cs
- ProfilePropertySettingsCollection.cs
- ReadContentAsBinaryHelper.cs
- OdbcInfoMessageEvent.cs
- DataSourceConverter.cs
- CancellationHandlerDesigner.cs
- RectConverter.cs
- Messages.cs
- PrintSchema.cs
- HostedHttpContext.cs
- HttpServerUtilityWrapper.cs
- ThrowHelper.cs
- ProjectionPathBuilder.cs
- Dump.cs
- PrintDialog.cs
- PasswordDeriveBytes.cs
- XsltArgumentList.cs
- HTMLTagNameToTypeMapper.cs
- DataSourceHelper.cs
- CompilerState.cs
- XPathScanner.cs
- LineSegment.cs
- EnumConverter.cs
- UnknownWrapper.cs
- ReadOnlyMetadataCollection.cs
- WebReferencesBuildProvider.cs
- XmlDocumentType.cs
- StringHelper.cs
- Volatile.cs
- PolicyChain.cs
- SelectedGridItemChangedEvent.cs
- WebServiceHost.cs
- TextRunTypographyProperties.cs
- TableProvider.cs
- ByteFacetDescriptionElement.cs
- Asn1IntegerConverter.cs
- MenuStrip.cs
- SplitterEvent.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ContextMenuStripGroup.cs
- MethodCallConverter.cs
- AppSettingsExpressionBuilder.cs
- IPEndPointCollection.cs
- HighlightVisual.cs
- XmlExtensionFunction.cs
- ImageAutomationPeer.cs
- DBConnectionString.cs
- FileDialogCustomPlacesCollection.cs
- WeakReferenceKey.cs
- SafeSecurityHelper.cs
- InkCanvasInnerCanvas.cs
- ExpanderAutomationPeer.cs
- AVElementHelper.cs
- PenLineJoinValidation.cs
- ApplicationActivator.cs