Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SystemColorTracker.cs
- CodeObject.cs
- SerializationException.cs
- GZipStream.cs
- TerminateDesigner.cs
- DatatypeImplementation.cs
- TriggerAction.cs
- DataGridViewTextBoxCell.cs
- ProfileEventArgs.cs
- MasterPage.cs
- WinEventTracker.cs
- SyndicationContent.cs
- MoveSizeWinEventHandler.cs
- DecoderBestFitFallback.cs
- NetworkCredential.cs
- DES.cs
- DataGridViewRow.cs
- List.cs
- ResourceDefaultValueAttribute.cs
- HttpCapabilitiesEvaluator.cs
- DataFieldConverter.cs
- ToolStripGrip.cs
- ConstraintEnumerator.cs
- SmtpCommands.cs
- MissingSatelliteAssemblyException.cs
- DataGridToolTip.cs
- ProxyGenerator.cs
- EntityDataSource.cs
- GPRECTF.cs
- AutoResetEvent.cs
- WebServiceClientProxyGenerator.cs
- DoubleAnimationClockResource.cs
- AddIn.cs
- SByteConverter.cs
- CurrentTimeZone.cs
- ControlType.cs
- WebPartConnectionsDisconnectVerb.cs
- FilteredDataSetHelper.cs
- ComponentChangedEvent.cs
- UnaryNode.cs
- OleDbConnectionFactory.cs
- NumberSubstitution.cs
- BitmapCodecInfoInternal.cs
- EntityDataSourceSelectingEventArgs.cs
- X509CertificateChain.cs
- RegistrationServices.cs
- ToolStripCodeDomSerializer.cs
- XmlTextWriter.cs
- SByteConverter.cs
- DoubleLinkList.cs
- BuildProvider.cs
- StateMachineTimers.cs
- _DisconnectOverlappedAsyncResult.cs
- SchemaReference.cs
- MatrixUtil.cs
- ElementAtQueryOperator.cs
- OrderedDictionaryStateHelper.cs
- UnsafeNativeMethodsPenimc.cs
- TransactionProtocol.cs
- PersonalizationStateInfo.cs
- QuaternionAnimationBase.cs
- XmlSchemaSet.cs
- HttpFileCollectionBase.cs
- ProgressBarBrushConverter.cs
- StructuralType.cs
- CodeAccessPermission.cs
- TagElement.cs
- PropertyPathWorker.cs
- SiteMapSection.cs
- VirtualDirectoryMapping.cs
- IBuiltInEvidence.cs
- XmlSchemaSimpleContentRestriction.cs
- VectorCollectionConverter.cs
- RtfFormatStack.cs
- Expander.cs
- SqlPersonalizationProvider.cs
- SafeNativeMethods.cs
- AddInContractAttribute.cs
- FixedSOMTable.cs
- CellPartitioner.cs
- FormattedText.cs
- PagesSection.cs
- X509Certificate.cs
- OperatingSystem.cs
- RegexBoyerMoore.cs
- XpsFilter.cs
- CryptoConfig.cs
- XmlTextEncoder.cs
- CodeCompileUnit.cs
- BamlRecordHelper.cs
- MessageSmuggler.cs
- ParserExtension.cs
- RequestCachingSection.cs
- PeerNameResolver.cs
- safemediahandle.cs
- SelectionChangedEventArgs.cs
- assemblycache.cs
- UpdateException.cs
- ClrProviderManifest.cs
- UIElementCollection.cs