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
- Converter.cs
- ActionFrame.cs
- JavaScriptString.cs
- InkCanvasInnerCanvas.cs
- OfTypeExpression.cs
- DetailsViewUpdateEventArgs.cs
- TimeSpanSecondsConverter.cs
- SoapIgnoreAttribute.cs
- HttpProfileGroupBase.cs
- BuildResultCache.cs
- DefaultValueAttribute.cs
- ReadWriteObjectLock.cs
- UnsafeNativeMethods.cs
- MouseGestureConverter.cs
- XmlEnumAttribute.cs
- MessageLogger.cs
- ProfileGroupSettings.cs
- XmlSchemaNotation.cs
- DateTimeParse.cs
- PixelFormat.cs
- PageRanges.cs
- StrongNameSignatureInformation.cs
- LabelAutomationPeer.cs
- DefaultPrintController.cs
- WebPartConnectionsCancelVerb.cs
- TimeoutException.cs
- ByteRangeDownloader.cs
- FigureHelper.cs
- Pair.cs
- XmlDocumentFragment.cs
- WindowsClaimSet.cs
- TemplateLookupAction.cs
- DelegateBodyWriter.cs
- DateTime.cs
- WebEventCodes.cs
- COM2ICategorizePropertiesHandler.cs
- ContextStaticAttribute.cs
- SapiGrammar.cs
- PaintValueEventArgs.cs
- XmlDocumentType.cs
- PrivilegeNotHeldException.cs
- Misc.cs
- HWStack.cs
- ContentDefinition.cs
- SqlXml.cs
- Enlistment.cs
- PolyLineSegment.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- CommandLibraryHelper.cs
- SafeProcessHandle.cs
- PolicyManager.cs
- MetabaseServerConfig.cs
- IndexedString.cs
- WindowsTooltip.cs
- precedingquery.cs
- Logging.cs
- AbandonedMutexException.cs
- BitHelper.cs
- EntitySetBase.cs
- ContextBase.cs
- CallbackHandler.cs
- VisualBasicSettingsHandler.cs
- SecurityDocument.cs
- XmlSerializableReader.cs
- ToolboxItemCollection.cs
- _IPv6Address.cs
- AffineTransform3D.cs
- Cursor.cs
- RadialGradientBrush.cs
- RtfToken.cs
- DataTableNewRowEvent.cs
- HandlerMappingMemo.cs
- ProxyWebPartManager.cs
- OuterGlowBitmapEffect.cs
- ObjectSpanRewriter.cs
- ToolBarOverflowPanel.cs
- SqlClientPermission.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SortQuery.cs
- ListBindingHelper.cs
- PersonalizationStateInfoCollection.cs
- MarginCollapsingState.cs
- ComplusTypeValidator.cs
- CalendarDateChangedEventArgs.cs
- SiteMapProvider.cs
- RecoverInstanceLocksCommand.cs
- RowVisual.cs
- VideoDrawing.cs
- NameValueConfigurationElement.cs
- SerializableAttribute.cs
- MethodBuilderInstantiation.cs
- DbUpdateCommandTree.cs
- ImageClickEventArgs.cs
- MDIWindowDialog.cs
- ECDiffieHellmanPublicKey.cs
- ClientTargetSection.cs
- MissingFieldException.cs
- UnmanagedMemoryStream.cs
- DragEventArgs.cs
- DataGridViewCellStyle.cs