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
- BitmapData.cs
- NotFiniteNumberException.cs
- ImageCodecInfoPrivate.cs
- ControlEvent.cs
- Accessors.cs
- Variant.cs
- UnsafeNativeMethods.cs
- Geometry3D.cs
- MemoryPressure.cs
- HtmlElementCollection.cs
- StateRuntime.cs
- DecimalAnimationUsingKeyFrames.cs
- SqlUtil.cs
- PathFigureCollection.cs
- FamilyTypeface.cs
- ContentElementCollection.cs
- ProcessInfo.cs
- CodeConditionStatement.cs
- WindowManager.cs
- TextTreeNode.cs
- AppearanceEditorPart.cs
- CommandDesigner.cs
- EntitySqlQueryCacheEntry.cs
- URLAttribute.cs
- MatrixCamera.cs
- MaskedTextProvider.cs
- ContainerSelectorActiveEvent.cs
- AmbientProperties.cs
- CurrencyWrapper.cs
- ZipIOExtraFieldPaddingElement.cs
- HTMLTextWriter.cs
- PackageRelationship.cs
- DependencyPropertyValueSerializer.cs
- mediaeventargs.cs
- SiteMapSection.cs
- DockPattern.cs
- TrackingServices.cs
- ColorMatrix.cs
- XmlDictionaryString.cs
- StrongName.cs
- Viewport3DVisual.cs
- ContentPosition.cs
- DateTimeFormat.cs
- XPathSelectionIterator.cs
- WorkflowRuntime.cs
- SqlClientMetaDataCollectionNames.cs
- PropertyRecord.cs
- BaseTransportHeaders.cs
- FlowDocumentPageViewerAutomationPeer.cs
- XamlSerializer.cs
- SizeAnimationBase.cs
- EntityDataSourceDataSelection.cs
- ParserHooks.cs
- MemoryRecordBuffer.cs
- MailMessage.cs
- UnsafeNativeMethods.cs
- AuthenticationModuleElementCollection.cs
- ContainerUIElement3D.cs
- XsltSettings.cs
- ConstantCheck.cs
- PlaceHolder.cs
- FrameworkContentElement.cs
- MimeTextImporter.cs
- QuestionEventArgs.cs
- DataSpaceManager.cs
- EntityObject.cs
- SelectionWordBreaker.cs
- CompositeActivityDesigner.cs
- KeyboardDevice.cs
- InfiniteIntConverter.cs
- WindowsBrush.cs
- CommandSet.cs
- Imaging.cs
- BlurEffect.cs
- JsonDeserializer.cs
- PositiveTimeSpanValidator.cs
- ProfilePropertySettings.cs
- DbProviderFactories.cs
- WebPartConnectVerb.cs
- RewritingProcessor.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- EasingKeyFrames.cs
- ValueTypeFixupInfo.cs
- AgileSafeNativeMemoryHandle.cs
- ArgumentOutOfRangeException.cs
- InvokeProviderWrapper.cs
- GeneratedContractType.cs
- securitycriticaldata.cs
- SHA1CryptoServiceProvider.cs
- DesignerActionHeaderItem.cs
- Renderer.cs
- Constraint.cs
- WebPartConnectionsDisconnectVerb.cs
- ListControlActionList.cs
- WebPartActionVerb.cs
- MobileResource.cs
- TreeNode.cs
- BitmapCodecInfo.cs
- StringDictionaryCodeDomSerializer.cs
- OdbcStatementHandle.cs