Code:
/ DotNET / DotNET / 8.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
- RightsManagementEncryptionTransform.cs
- ReferenceConverter.cs
- ValidationErrorEventArgs.cs
- IPEndPointCollection.cs
- WmlListAdapter.cs
- NavigateUrlConverter.cs
- Timeline.cs
- StorageEndPropertyMapping.cs
- Set.cs
- ToolStripControlHost.cs
- ControlFilterExpression.cs
- OLEDB_Enum.cs
- ShutDownListener.cs
- StrongNameKeyPair.cs
- HttpHandlerActionCollection.cs
- SqlBuffer.cs
- ExecutionEngineException.cs
- ZipIOCentralDirectoryBlock.cs
- SafeWaitHandle.cs
- TimeZone.cs
- ConnectionPointCookie.cs
- _DigestClient.cs
- MULTI_QI.cs
- UnauthorizedWebPart.cs
- SetterBaseCollection.cs
- SecurityDocument.cs
- XPathQilFactory.cs
- OdbcConnectionString.cs
- AutomationPeer.cs
- LocalizableAttribute.cs
- IDispatchConstantAttribute.cs
- TextEditor.cs
- CustomPopupPlacement.cs
- InputScope.cs
- EntityDataReader.cs
- SecurityProtocolCorrelationState.cs
- SchemaSetCompiler.cs
- KnownColorTable.cs
- CodeGeneratorOptions.cs
- Win32.cs
- TextDecorationCollection.cs
- SqlDependency.cs
- CodeArrayCreateExpression.cs
- VisualBasicReference.cs
- DataControlFieldCell.cs
- BamlCollectionHolder.cs
- recordstatescratchpad.cs
- GeneralTransform3D.cs
- MessageAction.cs
- DataColumnChangeEvent.cs
- SystemDiagnosticsSection.cs
- IArgumentProvider.cs
- GcSettings.cs
- BamlLocalizationDictionary.cs
- LoadItemsEventArgs.cs
- XmlHelper.cs
- TemplateBindingExpressionConverter.cs
- ErrorHandler.cs
- DnsPermission.cs
- TrustManagerMoreInformation.cs
- FileDialogCustomPlace.cs
- WpfKnownMemberInvoker.cs
- SQLDecimal.cs
- VectorAnimation.cs
- TreeViewItemAutomationPeer.cs
- RestClientProxyHandler.cs
- ProcessHostMapPath.cs
- XmlILConstructAnalyzer.cs
- XamlVector3DCollectionSerializer.cs
- SqlDataSourceConfigureFilterForm.cs
- XmlCharCheckingReader.cs
- XhtmlBasicCalendarAdapter.cs
- SettingsPropertyWrongTypeException.cs
- XmlSerializerSection.cs
- BooleanExpr.cs
- Constraint.cs
- OciHandle.cs
- StrongNamePublicKeyBlob.cs
- MachineSettingsSection.cs
- Run.cs
- SymmetricKey.cs
- ToolStripDropDownItem.cs
- InputReferenceExpression.cs
- StrongNameSignatureInformation.cs
- SystemWebCachingSectionGroup.cs
- StringBlob.cs
- RowVisual.cs
- BitConverter.cs
- EngineSiteSapi.cs
- ByteConverter.cs
- DataServiceCollectionOfT.cs
- ScriptControlDescriptor.cs
- TrackingProfile.cs
- _UriTypeConverter.cs
- RedirectionProxy.cs
- DependencyPropertyValueSerializer.cs
- WebPartVerbsEventArgs.cs
- DataSetMappper.cs
- GridViewRow.cs
- CTreeGenerator.cs