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
- Certificate.cs
- MailMessage.cs
- SQLResource.cs
- SoapAttributes.cs
- ObjectDataProvider.cs
- SystemNetHelpers.cs
- UIElementParagraph.cs
- EventToken.cs
- StyleCollectionEditor.cs
- TextSerializer.cs
- WebPartCatalogCloseVerb.cs
- PrinterUnitConvert.cs
- WpfWebRequestHelper.cs
- COM2EnumConverter.cs
- validationstate.cs
- StorageBasedPackageProperties.cs
- Win32.cs
- ChangeTracker.cs
- Brush.cs
- UnsafeNativeMethods.cs
- RowVisual.cs
- DataSourceView.cs
- DirectoryInfo.cs
- AccessDataSourceDesigner.cs
- SolidBrush.cs
- TextTreeInsertElementUndoUnit.cs
- Drawing.cs
- NameValueFileSectionHandler.cs
- TextElement.cs
- InvokeHandlers.cs
- TagMapCollection.cs
- MultipartContentParser.cs
- TransformerConfigurationWizardBase.cs
- FormsAuthenticationConfiguration.cs
- SqlAliaser.cs
- RequestCachingSection.cs
- ElementAction.cs
- DataServiceHostFactory.cs
- SafeSerializationManager.cs
- ToolStripContentPanel.cs
- Vector3DAnimationUsingKeyFrames.cs
- HttpWebResponse.cs
- PeerNameRecord.cs
- Rect3DValueSerializer.cs
- KeyValuePair.cs
- CodeExpressionCollection.cs
- EditingMode.cs
- PocoEntityKeyStrategy.cs
- LocalizabilityAttribute.cs
- HtmlTableRow.cs
- LinkDescriptor.cs
- PersonalizationProvider.cs
- LocalizabilityAttribute.cs
- RestClientProxyHandler.cs
- TimeSpanFormat.cs
- IdleTimeoutMonitor.cs
- CallId.cs
- AnimationLayer.cs
- MouseCaptureWithinProperty.cs
- AtomServiceDocumentSerializer.cs
- CompressionTransform.cs
- ExclusiveTcpListener.cs
- XmlArrayItemAttribute.cs
- nulltextnavigator.cs
- QueuePathDialog.cs
- FaultException.cs
- DesignerDataParameter.cs
- ListControlStringCollectionEditor.cs
- HttpSessionStateWrapper.cs
- ScriptControlDescriptor.cs
- CodeSubDirectoriesCollection.cs
- PlanCompiler.cs
- SecurityPolicySection.cs
- CursorConverter.cs
- XsltLoader.cs
- FixedTextPointer.cs
- VariableQuery.cs
- FloaterParagraph.cs
- ActiveXSite.cs
- TextElementCollection.cs
- DoubleLinkListEnumerator.cs
- BeginStoryboard.cs
- ExpressionHelper.cs
- ILGenerator.cs
- HttpListenerElement.cs
- DynamicObjectAccessor.cs
- EmptyCollection.cs
- ClientCultureInfo.cs
- FocusTracker.cs
- SetIterators.cs
- StylusPointPropertyUnit.cs
- PreloadHost.cs
- Completion.cs
- VScrollBar.cs
- DbException.cs
- XhtmlBasicListAdapter.cs
- XmlNamedNodeMap.cs
- AssemblyBuilder.cs
- SecurityContext.cs
- LinearGradientBrush.cs