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
- _ListenerAsyncResult.cs
- WinFormsSecurity.cs
- AndCondition.cs
- Automation.cs
- StringFunctions.cs
- InternalUserCancelledException.cs
- SwitchDesigner.xaml.cs
- StreamGeometry.cs
- CodeSnippetTypeMember.cs
- CroppedBitmap.cs
- WriteStateInfoBase.cs
- FileSystemWatcher.cs
- WebPartConnectionsConnectVerb.cs
- TimelineCollection.cs
- RuleAction.cs
- ObjectSet.cs
- DesignUtil.cs
- TypeReference.cs
- DownloadProgressEventArgs.cs
- DeclarativeConditionsCollection.cs
- OdbcHandle.cs
- DescendantQuery.cs
- ExtensionSurface.cs
- WebControlsSection.cs
- LingerOption.cs
- NavigateEvent.cs
- NavigationWindow.cs
- PTProvider.cs
- TextWriterEngine.cs
- CircleHotSpot.cs
- CompositeFontFamily.cs
- SplineKeyFrames.cs
- NCryptSafeHandles.cs
- OdbcHandle.cs
- EnglishPluralizationService.cs
- TableDesigner.cs
- DataSetMappper.cs
- GridViewRowCollection.cs
- LateBoundBitmapDecoder.cs
- DataStreamFromComStream.cs
- Pkcs7Signer.cs
- DesignTimeParseData.cs
- LocationUpdates.cs
- Drawing.cs
- XsltException.cs
- TypeUnloadedException.cs
- CmsUtils.cs
- MailWriter.cs
- ComplexTypeEmitter.cs
- OSEnvironmentHelper.cs
- TextEditorTyping.cs
- WinFormsUtils.cs
- _HelperAsyncResults.cs
- ArrangedElementCollection.cs
- StatusBarPanel.cs
- ObjectComplexPropertyMapping.cs
- MemoryFailPoint.cs
- TrustManager.cs
- PropertyGridEditorPart.cs
- RadioButton.cs
- ExpressionVisitorHelpers.cs
- X509Certificate2.cs
- ConstraintConverter.cs
- DataControlFieldCollection.cs
- NetPipeSection.cs
- TimeSpanSecondsConverter.cs
- RetriableClipboard.cs
- ListViewUpdatedEventArgs.cs
- RoutedEventValueSerializer.cs
- NavigationProperty.cs
- CodeTypeMember.cs
- IPAddressCollection.cs
- GridViewSortEventArgs.cs
- HwndStylusInputProvider.cs
- ColorConvertedBitmap.cs
- TimersDescriptionAttribute.cs
- InputBinding.cs
- Rectangle.cs
- ApplicationProxyInternal.cs
- FontSource.cs
- CompositeScriptReference.cs
- MergablePropertyAttribute.cs
- FormsAuthenticationUserCollection.cs
- Int32CollectionConverter.cs
- EncoderReplacementFallback.cs
- RuntimeHelpers.cs
- HttpConfigurationSystem.cs
- DesignerSelectionListAdapter.cs
- RuntimeIdentifierPropertyAttribute.cs
- SourceSwitch.cs
- StringFreezingAttribute.cs
- SqlNotificationEventArgs.cs
- BaseAsyncResult.cs
- DoubleIndependentAnimationStorage.cs
- HttpValueCollection.cs
- LockCookie.cs
- LoadRetryStrategyFactory.cs
- ComponentChangedEvent.cs
- TaskFileService.cs
- MessagePartProtectionMode.cs