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
- WebScriptMetadataMessage.cs
- RegisteredScript.cs
- OLEDB_Util.cs
- ActivityBindForm.cs
- ChangeNode.cs
- Math.cs
- ContentHostHelper.cs
- DbConnectionInternal.cs
- DataGridAddNewRow.cs
- ExpressionVisitorHelpers.cs
- TemplatedControlDesigner.cs
- SingleTagSectionHandler.cs
- TraceLog.cs
- WmlTextBoxAdapter.cs
- OleDbConnection.cs
- Point3DAnimation.cs
- Point3DConverter.cs
- TreeViewImageIndexConverter.cs
- InstanceKeyNotReadyException.cs
- UserControl.cs
- LazyTextWriterCreator.cs
- InlinedAggregationOperator.cs
- CalendarData.cs
- Panel.cs
- IUnknownConstantAttribute.cs
- Peer.cs
- SQLMoneyStorage.cs
- LinkConverter.cs
- XmlMemberMapping.cs
- Types.cs
- BindingManagerDataErrorEventArgs.cs
- _Semaphore.cs
- DocumentViewerBase.cs
- CodeDirectiveCollection.cs
- ObjectHandle.cs
- CodeSnippetExpression.cs
- ReflectTypeDescriptionProvider.cs
- SoapObjectReader.cs
- DbProviderManifest.cs
- ElementHost.cs
- COM2ExtendedTypeConverter.cs
- smtpconnection.cs
- XPathDocumentBuilder.cs
- DataGridViewCellStyle.cs
- GenericTypeParameterBuilder.cs
- PropertyEmitterBase.cs
- X509Certificate2Collection.cs
- XPathPatternBuilder.cs
- QueryResponse.cs
- MetadataCache.cs
- SqlDeflator.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DesignerAutoFormat.cs
- UnauthorizedWebPart.cs
- XPathNavigatorKeyComparer.cs
- DocumentPageView.cs
- OdbcConnectionOpen.cs
- DataSourceNameHandler.cs
- GatewayIPAddressInformationCollection.cs
- ScriptComponentDescriptor.cs
- MdiWindowListStrip.cs
- ObjectDisposedException.cs
- TextEditorMouse.cs
- IdleTimeoutMonitor.cs
- InheritedPropertyChangedEventArgs.cs
- InkCanvas.cs
- HandoffBehavior.cs
- StateChangeEvent.cs
- SequenceDesigner.cs
- MaterializeFromAtom.cs
- ModelFactory.cs
- IProducerConsumerCollection.cs
- XmlSchemaGroup.cs
- Int32AnimationBase.cs
- ImageCodecInfo.cs
- TimeSpanOrInfiniteConverter.cs
- CustomAssemblyResolver.cs
- XmlLoader.cs
- HtmlShimManager.cs
- Partitioner.cs
- ArraySubsetEnumerator.cs
- Int64AnimationBase.cs
- RegexCompiler.cs
- FileRecordSequenceHelper.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- FieldCollectionEditor.cs
- UniqueIdentifierService.cs
- Bold.cs
- webproxy.cs
- ContractMapping.cs
- AxisAngleRotation3D.cs
- DrawingBrush.cs
- BatchParser.cs
- SHA1CryptoServiceProvider.cs
- Oci.cs
- TaskFactory.cs
- StaticSiteMapProvider.cs
- MembershipValidatePasswordEventArgs.cs
- NavigationPropertyEmitter.cs
- ContextInformation.cs