Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SByte.cs
- BatchServiceHost.cs
- AutomationPatternInfo.cs
- BufferedWebEventProvider.cs
- FormViewRow.cs
- SafeBitVector32.cs
- ExtentCqlBlock.cs
- HttpCacheVaryByContentEncodings.cs
- HelloOperation11AsyncResult.cs
- Journaling.cs
- IndicFontClient.cs
- StringPropertyBuilder.cs
- IndexOutOfRangeException.cs
- SerializationSectionGroup.cs
- StringExpressionSet.cs
- Walker.cs
- EntityCollectionChangedParams.cs
- VisualTreeUtils.cs
- QueryConverter.cs
- GroupBoxRenderer.cs
- AccessibleObject.cs
- _IPv4Address.cs
- AudioFormatConverter.cs
- FlowLayout.cs
- ActivationServices.cs
- BinaryMessageFormatter.cs
- FontCacheUtil.cs
- EmptyEnumerator.cs
- SimpleWebHandlerParser.cs
- PrinterResolution.cs
- TextOutput.cs
- EntityCommand.cs
- SystemNetHelpers.cs
- MessageHeaderInfoTraceRecord.cs
- ToolStripDropTargetManager.cs
- SafeRightsManagementPubHandle.cs
- WriteFileContext.cs
- CallSiteHelpers.cs
- Polygon.cs
- KeyPressEvent.cs
- DataGridCell.cs
- SspiWrapper.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- AppDomainFactory.cs
- ProcessDesigner.cs
- OracleBoolean.cs
- DetailsView.cs
- HttpClientProtocol.cs
- RawMouseInputReport.cs
- TextDecorationCollection.cs
- Mutex.cs
- MouseCaptureWithinProperty.cs
- DriveNotFoundException.cs
- SkewTransform.cs
- Stylus.cs
- Internal.cs
- RegexStringValidatorAttribute.cs
- PointAnimationUsingKeyFrames.cs
- CallbackCorrelationInitializer.cs
- AnimatedTypeHelpers.cs
- FontStretch.cs
- SqlUnionizer.cs
- InternalConfigHost.cs
- DbConnectionPoolCounters.cs
- ToolStripProgressBar.cs
- PeerNodeTraceRecord.cs
- SecurityPolicySection.cs
- SelectionProcessor.cs
- InfoCardAsymmetricCrypto.cs
- ToolStripDesigner.cs
- ToolStripSplitStackLayout.cs
- DataContractSerializerOperationFormatter.cs
- ListViewPagedDataSource.cs
- CultureInfo.cs
- TargetParameterCountException.cs
- AnchoredBlock.cs
- IPAddress.cs
- GeneralTransform3D.cs
- HijriCalendar.cs
- XmlSchemaInclude.cs
- InvalidOperationException.cs
- ColorContext.cs
- SymbolPair.cs
- EventManager.cs
- ZoomPercentageConverter.cs
- Journal.cs
- XmlSchemaFacet.cs
- HttpModule.cs
- AnnotationResource.cs
- PixelFormat.cs
- Operators.cs
- DesignerOptions.cs
- State.cs
- TableStyle.cs
- TextPointerBase.cs
- RawStylusSystemGestureInputReport.cs
- TypeSource.cs
- DynamicPropertyReader.cs
- PackageDigitalSignatureManager.cs
- ParamArrayAttribute.cs