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
- CompleteWizardStep.cs
- AssemblyResourceLoader.cs
- AuthenticationService.cs
- BaseCAMarshaler.cs
- OverrideMode.cs
- ItemContainerGenerator.cs
- MatrixValueSerializer.cs
- EpmSyndicationContentDeSerializer.cs
- CacheEntry.cs
- CLRBindingWorker.cs
- LogWriteRestartAreaState.cs
- EntityParameterCollection.cs
- ItemList.cs
- EmbeddedMailObjectsCollection.cs
- ToolboxCategory.cs
- StyleCollection.cs
- PersistenceMetadataNamespace.cs
- ByteStack.cs
- HeaderCollection.cs
- DeadCharTextComposition.cs
- Menu.cs
- Header.cs
- SessionPageStateSection.cs
- CircleHotSpot.cs
- DataGridCommandEventArgs.cs
- QuotedPrintableStream.cs
- WpfXamlLoader.cs
- DivideByZeroException.cs
- ResourceDictionary.cs
- PersonalizationEntry.cs
- HttpServerVarsCollection.cs
- RelationshipDetailsRow.cs
- LogSwitch.cs
- AnnotationComponentManager.cs
- ProtocolsConfigurationHandler.cs
- DataServiceContext.cs
- FormsAuthenticationUser.cs
- ScrollData.cs
- DbConnectionClosed.cs
- TextEditorSpelling.cs
- Schedule.cs
- UnsafeNativeMethods.cs
- FlowDocumentReaderAutomationPeer.cs
- MarkupCompiler.cs
- EdgeProfileValidation.cs
- Span.cs
- FullTextState.cs
- StringCollection.cs
- SystemMulticastIPAddressInformation.cs
- ForceCopyBuildProvider.cs
- RegionIterator.cs
- SecUtil.cs
- CompilationLock.cs
- SubpageParaClient.cs
- GestureRecognitionResult.cs
- UseManagedPresentationElement.cs
- WebHttpBindingElement.cs
- LoginCancelEventArgs.cs
- ParserExtension.cs
- EraserBehavior.cs
- ViewStateModeByIdAttribute.cs
- Interop.cs
- FolderNameEditor.cs
- LineServicesCallbacks.cs
- BeginEvent.cs
- ManualResetEvent.cs
- ListDictionary.cs
- BitmapEffectGroup.cs
- LogExtentCollection.cs
- MissingMemberException.cs
- BitmapImage.cs
- CodeDirectoryCompiler.cs
- XmlBaseReader.cs
- HashMembershipCondition.cs
- DTCTransactionManager.cs
- ViewLoader.cs
- RoutedEventArgs.cs
- ConnectionPoint.cs
- DispatcherObject.cs
- TimeManager.cs
- IApplicationTrustManager.cs
- VScrollProperties.cs
- MetadataProperty.cs
- EditingCoordinator.cs
- SqlResolver.cs
- PasswordPropertyTextAttribute.cs
- EntityConnection.cs
- login.cs
- SortedSet.cs
- SharedPerformanceCounter.cs
- DataServiceExpressionVisitor.cs
- MetadataCollection.cs
- XsltConvert.cs
- UIElementParagraph.cs
- DockPattern.cs
- PngBitmapDecoder.cs
- HttpConfigurationContext.cs
- Scripts.cs
- ReceiveActivity.cs
- FormsAuthenticationCredentials.cs