Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlStream.cs
- CaseInsensitiveComparer.cs
- ImageIndexConverter.cs
- RuntimeIdentifierPropertyAttribute.cs
- RefExpr.cs
- MobileCategoryAttribute.cs
- CommandExpr.cs
- ProcessInfo.cs
- SqlBulkCopyColumnMapping.cs
- ListBoxItem.cs
- UIElement3D.cs
- ResourceDisplayNameAttribute.cs
- XmlCollation.cs
- ProxyWebPartManager.cs
- Manipulation.cs
- ThicknessAnimationUsingKeyFrames.cs
- KnownBoxes.cs
- WebPartMenu.cs
- BindingExpressionUncommonField.cs
- CreateInstanceBinder.cs
- TabControlCancelEvent.cs
- PlanCompilerUtil.cs
- MemberInfoSerializationHolder.cs
- PeerName.cs
- VideoDrawing.cs
- SchemaContext.cs
- DbConnectionStringCommon.cs
- DecoderReplacementFallback.cs
- XPathMessageFilterElementCollection.cs
- FieldAccessException.cs
- MultipleViewProviderWrapper.cs
- IdentifierCreationService.cs
- DataGridRow.cs
- LabelDesigner.cs
- WebDescriptionAttribute.cs
- ResourceManagerWrapper.cs
- EntityDataSourceValidationException.cs
- ImageKeyConverter.cs
- MetadataCollection.cs
- LabelAutomationPeer.cs
- SharedUtils.cs
- ObjectCloneHelper.cs
- Convert.cs
- StatusBarPanel.cs
- BuildDependencySet.cs
- _SSPISessionCache.cs
- CodeAttachEventStatement.cs
- EntityDesignerDataSourceView.cs
- RegionData.cs
- StreamResourceInfo.cs
- SecurityUtils.cs
- securitycriticaldataformultiplegetandset.cs
- BamlStream.cs
- TdsParserSessionPool.cs
- DbCommandTree.cs
- ReadOnlyTernaryTree.cs
- BitmapEffectOutputConnector.cs
- CommunicationException.cs
- InkSerializer.cs
- DataGridColumn.cs
- LambdaSerializationException.cs
- WindowsTreeView.cs
- ControlPaint.cs
- FindProgressChangedEventArgs.cs
- EndpointDispatcher.cs
- BackgroundFormatInfo.cs
- VisualCollection.cs
- State.cs
- FixUp.cs
- AudienceUriMode.cs
- DocumentCollection.cs
- CodeAccessSecurityEngine.cs
- PerformanceCounterPermissionEntry.cs
- PropertyEntry.cs
- HttpProfileGroupBase.cs
- SpotLight.cs
- Rotation3D.cs
- listitem.cs
- XsltArgumentList.cs
- BatchWriter.cs
- SafeRegistryHandle.cs
- TimeStampChecker.cs
- DirectionalLight.cs
- AppearanceEditorPart.cs
- SqlTrackingWorkflowInstance.cs
- EncoderParameters.cs
- RtfNavigator.cs
- RSACryptoServiceProvider.cs
- SchemaObjectWriter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WebAdminConfigurationHelper.cs
- BridgeDataRecord.cs
- XmlWellformedWriter.cs
- ScriptReference.cs
- TargetConverter.cs
- XmlConverter.cs
- SchemaType.cs
- IncrementalCompileAnalyzer.cs
- LookupBindingPropertiesAttribute.cs
- XmlTypeMapping.cs