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
- TextTreeInsertUndoUnit.cs
- PolyLineSegment.cs
- HtmlUtf8RawTextWriter.cs
- safex509handles.cs
- FileStream.cs
- DbTypeMap.cs
- ToolboxComponentsCreatingEventArgs.cs
- RowUpdatedEventArgs.cs
- ToolbarAUtomationPeer.cs
- InfoCardService.cs
- AmbiguousMatchException.cs
- XmlWriter.cs
- X509Certificate2.cs
- NumericUpDown.cs
- XmlILOptimizerVisitor.cs
- DPTypeDescriptorContext.cs
- ExpressionHelper.cs
- ColorAnimationBase.cs
- ColorConvertedBitmap.cs
- odbcmetadatafactory.cs
- StringValidatorAttribute.cs
- PropertyValueUIItem.cs
- ForEach.cs
- CheckBoxStandardAdapter.cs
- SHA384Managed.cs
- NameValueConfigurationElement.cs
- Line.cs
- WinOEToolBoxItem.cs
- SelectingProviderEventArgs.cs
- SelectedGridItemChangedEvent.cs
- mediaeventargs.cs
- SqlNotificationRequest.cs
- PkcsMisc.cs
- StorageSetMapping.cs
- HtmlEmptyTagControlBuilder.cs
- HostedElements.cs
- EventItfInfo.cs
- LiteralTextParser.cs
- ToolStripMenuItem.cs
- HttpListenerException.cs
- TextServicesLoader.cs
- XmlSerializationWriter.cs
- SqlDataReaderSmi.cs
- RequestStatusBarUpdateEventArgs.cs
- AnimatedTypeHelpers.cs
- PropertyManager.cs
- BitmapSourceSafeMILHandle.cs
- DependencySource.cs
- GridViewColumnHeader.cs
- JavaScriptString.cs
- ArrayTypeMismatchException.cs
- CqlQuery.cs
- SplineQuaternionKeyFrame.cs
- TypeBuilder.cs
- FixedNode.cs
- TextSelection.cs
- IIS7UserPrincipal.cs
- ParameterElementCollection.cs
- JsonDataContract.cs
- WebControlParameterProxy.cs
- AxDesigner.cs
- MsmqIntegrationElement.cs
- HashSet.cs
- HijriCalendar.cs
- RawUIStateInputReport.cs
- documentsequencetextview.cs
- HttpModulesSection.cs
- MaskPropertyEditor.cs
- TableLayoutStyleCollection.cs
- Duration.cs
- XPathAncestorIterator.cs
- ThicknessAnimationUsingKeyFrames.cs
- DataContractSet.cs
- DataGridCellsPanel.cs
- WebSysDescriptionAttribute.cs
- ResourceManagerWrapper.cs
- SpellCheck.cs
- Random.cs
- SqlNode.cs
- XmlSchemas.cs
- SocketElement.cs
- NamespaceMapping.cs
- NullReferenceException.cs
- DataGridViewSortCompareEventArgs.cs
- ExpressionDumper.cs
- RenderData.cs
- DataBindEngine.cs
- DeclaredTypeValidatorAttribute.cs
- SqlException.cs
- Parameter.cs
- AdRotator.cs
- WindowsToolbarItemAsMenuItem.cs
- List.cs
- HebrewNumber.cs
- UndirectedGraph.cs
- Transform3D.cs
- ServiceProviders.cs
- ConnectionPointCookie.cs
- ZipIOLocalFileDataDescriptor.cs
- DataBinder.cs