Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DifferencingCollection.cs
- GeneralTransform3DGroup.cs
- WindowsFormsHostAutomationPeer.cs
- RightsManagementPermission.cs
- RenderContext.cs
- GeneralTransform2DTo3DTo2D.cs
- GenericIdentity.cs
- FileVersionInfo.cs
- FrameDimension.cs
- ConfigurationFileMap.cs
- VisualTreeUtils.cs
- FontWeightConverter.cs
- PeerResolverMode.cs
- WebEvents.cs
- DocumentManager.cs
- CodeMemberMethod.cs
- HijriCalendar.cs
- QualifiedCellIdBoolean.cs
- PropertyInfoSet.cs
- DocumentPageViewAutomationPeer.cs
- ListParaClient.cs
- DocumentReference.cs
- AuthenticationModuleElement.cs
- GlobalizationSection.cs
- BamlWriter.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- DefaultEventAttribute.cs
- CodePrimitiveExpression.cs
- CheckBox.cs
- ResponseBodyWriter.cs
- DataSourceExpression.cs
- TraceSwitch.cs
- RenderCapability.cs
- SByteStorage.cs
- PageClientProxyGenerator.cs
- BordersPage.cs
- NetworkInformationException.cs
- XmlBoundElement.cs
- documentsequencetextcontainer.cs
- TrailingSpaceComparer.cs
- While.cs
- Label.cs
- DataGridViewAccessibleObject.cs
- DataTableTypeConverter.cs
- ArrangedElementCollection.cs
- GenericWebPart.cs
- FontUnit.cs
- SystemNetworkInterface.cs
- FontDifferentiator.cs
- Encoding.cs
- TextElement.cs
- ReferencedAssembly.cs
- FontFamily.cs
- PeerNameRecordCollection.cs
- ParameterCollection.cs
- EventLogConfiguration.cs
- DesignOnlyAttribute.cs
- XmlSchemaValidationException.cs
- CalendarDesigner.cs
- WindowsScrollBar.cs
- TypeUnloadedException.cs
- IImplicitResourceProvider.cs
- SharedPersonalizationStateInfo.cs
- ValidationRuleCollection.cs
- FastPropertyAccessor.cs
- CaseKeyBox.xaml.cs
- InternalMappingException.cs
- CodeMemberField.cs
- CatchBlock.cs
- OdbcReferenceCollection.cs
- SqlErrorCollection.cs
- MetadataArtifactLoader.cs
- ProgressBarRenderer.cs
- GridViewRowCollection.cs
- AttributeQuery.cs
- X509Certificate.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- DocumentXmlWriter.cs
- SerializationStore.cs
- UserUseLicenseDictionaryLoader.cs
- SafeMILHandle.cs
- Point3DValueSerializer.cs
- WebBrowserBase.cs
- XPathDescendantIterator.cs
- DSASignatureDeformatter.cs
- TriggerCollection.cs
- HttpListener.cs
- DataTableMappingCollection.cs
- DataRowView.cs
- coordinator.cs
- StrokeRenderer.cs
- DataGridHeaderBorder.cs
- Listbox.cs
- PassportAuthenticationEventArgs.cs
- CompareValidator.cs
- ResizeBehavior.cs
- DataTemplate.cs
- StatusStrip.cs
- TemplatedMailWebEventProvider.cs
- Camera.cs