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
- SQLMembershipProvider.cs
- Binding.cs
- WindowsClaimSet.cs
- TextSimpleMarkerProperties.cs
- HttpCachePolicyBase.cs
- Visitor.cs
- SystemException.cs
- webproxy.cs
- VirtualPathData.cs
- webbrowsersite.cs
- PickBranch.cs
- XmlDocumentFragment.cs
- CultureSpecificStringDictionary.cs
- BasicCellRelation.cs
- UnitySerializationHolder.cs
- LiteralTextParser.cs
- Collection.cs
- BezierSegment.cs
- MachineKeyConverter.cs
- EventMappingSettings.cs
- WorkflowTimerService.cs
- EventSinkHelperWriter.cs
- EmptyEnumerator.cs
- AdCreatedEventArgs.cs
- TextFormatterImp.cs
- PingOptions.cs
- SafeNativeMethods.cs
- Char.cs
- UpdatePanelTriggerCollection.cs
- XmlLanguageConverter.cs
- CodeNamespaceImportCollection.cs
- MSAAEventDispatcher.cs
- MetaDataInfo.cs
- XmlSchema.cs
- AccessibleObject.cs
- WebPartManagerDesigner.cs
- DynamicMethod.cs
- ResXResourceSet.cs
- MimeBasePart.cs
- Translator.cs
- ExpressionDumper.cs
- BaseTemplateBuildProvider.cs
- DataGrid.cs
- DockPatternIdentifiers.cs
- ScaleTransform3D.cs
- MemberDescriptor.cs
- CodeTypeParameter.cs
- Helper.cs
- CompilationLock.cs
- _DigestClient.cs
- TreeView.cs
- CompiledXpathExpr.cs
- WeakReferenceEnumerator.cs
- ConfigurationValues.cs
- BamlRecords.cs
- QilStrConcat.cs
- SiteMapProvider.cs
- RequestUriProcessor.cs
- ConnectionStringSettingsCollection.cs
- ConfigurationManagerInternalFactory.cs
- FloaterParaClient.cs
- BindingGraph.cs
- CompModSwitches.cs
- VirtualPath.cs
- StyleReferenceConverter.cs
- TrustExchangeException.cs
- XmlNodeChangedEventManager.cs
- Latin1Encoding.cs
- ListControl.cs
- CacheSection.cs
- TextBlockAutomationPeer.cs
- TreeNodeSelectionProcessor.cs
- CommonRemoteMemoryBlock.cs
- CodeVariableDeclarationStatement.cs
- InkCollectionBehavior.cs
- BitmapEncoder.cs
- _AutoWebProxyScriptEngine.cs
- TextRangeEditTables.cs
- ConfigXmlDocument.cs
- FrameworkElementFactoryMarkupObject.cs
- MouseButtonEventArgs.cs
- RadialGradientBrush.cs
- RoleService.cs
- SecurityTokenProviderContainer.cs
- XmlILIndex.cs
- Simplifier.cs
- NumericPagerField.cs
- KeyNotFoundException.cs
- StaticExtensionConverter.cs
- DLinqColumnProvider.cs
- ServerValidateEventArgs.cs
- WpfPayload.cs
- FileDialog.cs
- PopOutPanel.cs
- ExpressionBindingCollection.cs
- Cursors.cs
- QuinticEase.cs
- GeometryDrawing.cs
- SqlBuilder.cs
- MatrixKeyFrameCollection.cs