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
- CriticalHandle.cs
- HttpCapabilitiesEvaluator.cs
- UnmanagedHandle.cs
- BStrWrapper.cs
- LineUtil.cs
- SimpleHandlerBuildProvider.cs
- BufferModeSettings.cs
- UInt16.cs
- LinkedList.cs
- MenuEventArgs.cs
- Error.cs
- Int32EqualityComparer.cs
- EventBuilder.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- WebContext.cs
- ApplicationServiceManager.cs
- SecurityRuntime.cs
- LocatorPartList.cs
- WorkItem.cs
- BitmapEffectInput.cs
- DataBinder.cs
- safesecurityhelperavalon.cs
- PeerCredentialElement.cs
- ErrorRuntimeConfig.cs
- ColumnWidthChangedEvent.cs
- ManagedIStream.cs
- EditorBrowsableAttribute.cs
- ServerValidateEventArgs.cs
- Schema.cs
- BufferBuilder.cs
- XmlLoader.cs
- ProxyManager.cs
- GreenMethods.cs
- StaticResourceExtension.cs
- NamespaceCollection.cs
- RelationshipNavigation.cs
- PointLight.cs
- NavigatingCancelEventArgs.cs
- Constraint.cs
- StrokeCollectionConverter.cs
- HttpCacheVary.cs
- OleDbError.cs
- ImageBrush.cs
- PackagePartCollection.cs
- _HelperAsyncResults.cs
- BitmapSource.cs
- MdiWindowListStrip.cs
- TabletCollection.cs
- Control.cs
- CorrelationToken.cs
- DataGridViewCellCollection.cs
- TransactionFlowBindingElement.cs
- DecoderExceptionFallback.cs
- StorageInfo.cs
- WinFormsComponentEditor.cs
- DictionaryGlobals.cs
- SafeRegistryHandle.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WebPartVerb.cs
- XmlSerializerNamespaces.cs
- Model3DGroup.cs
- JulianCalendar.cs
- XmlDomTextWriter.cs
- MutableAssemblyCacheEntry.cs
- CryptoApi.cs
- WebPartMinimizeVerb.cs
- CompressionTransform.cs
- VectorValueSerializer.cs
- InkCanvasFeedbackAdorner.cs
- DbConnectionPool.cs
- XmlCountingReader.cs
- EventProviderWriter.cs
- Base64Stream.cs
- Identity.cs
- UriTemplateDispatchFormatter.cs
- SizeAnimation.cs
- CallbackTimeoutsBehavior.cs
- SchemaImporterExtensionElement.cs
- SynchronousReceiveBehavior.cs
- keycontainerpermission.cs
- SafeUserTokenHandle.cs
- PageBreakRecord.cs
- WebServiceHandler.cs
- ConnectionStringSettings.cs
- ThreadStaticAttribute.cs
- WindowsPen.cs
- RandomNumberGenerator.cs
- DataGridViewCellStyleBuilderDialog.cs
- webeventbuffer.cs
- EncodingNLS.cs
- ToolStripItemRenderEventArgs.cs
- XPathNodeIterator.cs
- ObjectView.cs
- SqlWriter.cs
- UICuesEvent.cs
- RewritingProcessor.cs
- SmiRequestExecutor.cs
- ReferencedAssembly.cs
- StateMachine.cs
- EventWaitHandle.cs