Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDelegate.cs / 1305376 / CodeTypeDelegate.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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. /// ///// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- CodeParameterDeclarationExpression.cs
- WorkflowInstanceTerminatedRecord.cs
- EUCJPEncoding.cs
- StatusBarPanel.cs
- SafePointer.cs
- BitmapFrameEncode.cs
- SQLGuidStorage.cs
- MessageDecoder.cs
- ellipse.cs
- DrawingDrawingContext.cs
- ObjectDataSourceFilteringEventArgs.cs
- StylusPoint.cs
- ToolBarButton.cs
- TextTreeExtractElementUndoUnit.cs
- UIElementPropertyUndoUnit.cs
- LineServices.cs
- HtmlContainerControl.cs
- IdentityNotMappedException.cs
- DataGridBoolColumn.cs
- SqlDataRecord.cs
- XhtmlBasicListAdapter.cs
- DirectoryNotFoundException.cs
- Binding.cs
- CompareInfo.cs
- WindowsGrip.cs
- CodeAccessSecurityEngine.cs
- DiscoveryClientReferences.cs
- EdmPropertyAttribute.cs
- XpsResource.cs
- HijriCalendar.cs
- BasicExpressionVisitor.cs
- ZoneButton.cs
- HitTestParameters3D.cs
- ConfigXmlAttribute.cs
- WebMessageEncodingElement.cs
- TableLayoutSettingsTypeConverter.cs
- MetadataPropertyCollection.cs
- XmlHierarchicalDataSourceView.cs
- Enum.cs
- DataGridComponentEditor.cs
- Variant.cs
- GlobalAclOperationRequirement.cs
- SoapReflectionImporter.cs
- ByteFacetDescriptionElement.cs
- ProjectionPlan.cs
- WrappedIUnknown.cs
- RIPEMD160Managed.cs
- DataGridViewCellPaintingEventArgs.cs
- HyperLinkColumn.cs
- CodeMethodReturnStatement.cs
- LocalizationParserHooks.cs
- MenuItemStyleCollection.cs
- IntPtr.cs
- RowCache.cs
- RectangleHotSpot.cs
- mediapermission.cs
- TemplateNameScope.cs
- ProxySimple.cs
- XamlTypeMapper.cs
- Point3DConverter.cs
- WebPartManagerDesigner.cs
- NGCPageContentSerializerAsync.cs
- TypeToken.cs
- ContainsSearchOperator.cs
- TextDecorationCollection.cs
- _CacheStreams.cs
- XmlReflectionMember.cs
- X509ChainElement.cs
- ControlEvent.cs
- FixedLineResult.cs
- DbProviderFactoriesConfigurationHandler.cs
- SqlTransaction.cs
- SoapElementAttribute.cs
- RightsManagementEncryptedStream.cs
- QilFactory.cs
- EventDescriptorCollection.cs
- ConfigViewGenerator.cs
- MachineKeySection.cs
- BooleanStorage.cs
- DataSourceCacheDurationConverter.cs
- DataServiceStreamResponse.cs
- MULTI_QI.cs
- WebDescriptionAttribute.cs
- _StreamFramer.cs
- Mapping.cs
- ToolStripCodeDomSerializer.cs
- InstanceKey.cs
- HttpCookieCollection.cs
- SmtpAuthenticationManager.cs
- SessionStateSection.cs
- ExpandCollapsePattern.cs
- ConfigurationSchemaErrors.cs
- AttachedAnnotation.cs
- InteropAutomationProvider.cs
- PageBreakRecord.cs
- EnumConverter.cs
- Translator.cs
- ExecutedRoutedEventArgs.cs
- Message.cs
- controlskin.cs