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
- BindingBase.cs
- MatrixAnimationUsingKeyFrames.cs
- Stylesheet.cs
- CalculatedColumn.cs
- PlaceHolder.cs
- EntityStoreSchemaFilterEntry.cs
- WebBrowserNavigatingEventHandler.cs
- ClientConfigurationSystem.cs
- InheritanceAttribute.cs
- GridItemPattern.cs
- SafeRightsManagementSessionHandle.cs
- EventArgs.cs
- ClientTarget.cs
- RegexCode.cs
- GridViewRowPresenter.cs
- SafeNativeMethods.cs
- MaskedTextBoxTextEditorDropDown.cs
- LinqDataSource.cs
- FlowLayout.cs
- EntityObject.cs
- RegisteredHiddenField.cs
- TailPinnedEventArgs.cs
- Compiler.cs
- XmlTextReaderImplHelpers.cs
- ActivityInstanceReference.cs
- Version.cs
- FacetChecker.cs
- SessionParameter.cs
- ProgressBarRenderer.cs
- EdmConstants.cs
- EdmFunction.cs
- FontStretches.cs
- EmbeddedMailObject.cs
- complextypematerializer.cs
- StylusPointProperties.cs
- log.cs
- DataPagerFieldItem.cs
- MenuAdapter.cs
- CodeMemberField.cs
- Directory.cs
- XmlValidatingReader.cs
- Deserializer.cs
- Walker.cs
- XmlSerializerFactory.cs
- WinFormsComponentEditor.cs
- WebDescriptionAttribute.cs
- ControlTemplate.cs
- XPathNode.cs
- PrimarySelectionAdorner.cs
- SmtpMail.cs
- DateTimeUtil.cs
- Rect3DConverter.cs
- ActivityIdHeader.cs
- DataGridColumnEventArgs.cs
- OpenFileDialog.cs
- TemplateInstanceAttribute.cs
- InputQueue.cs
- XmlFormatExtensionAttribute.cs
- ConstraintStruct.cs
- WeakReferenceEnumerator.cs
- RegistrationProxy.cs
- ECDiffieHellmanPublicKey.cs
- SchemaComplexType.cs
- QilPatternVisitor.cs
- SingleObjectCollection.cs
- LongSumAggregationOperator.cs
- PrefixHandle.cs
- SqlNode.cs
- LinqDataSourceSelectEventArgs.cs
- LinkedResource.cs
- InputLanguageCollection.cs
- RadioButton.cs
- BaseTemplateBuildProvider.cs
- Camera.cs
- StreamingContext.cs
- DisplayMemberTemplateSelector.cs
- ParallelTimeline.cs
- EventPrivateKey.cs
- WebPartEditVerb.cs
- ValidationContext.cs
- ScriptModule.cs
- UriSection.cs
- SoundPlayer.cs
- DeviceContext.cs
- InputDevice.cs
- DataGridViewBand.cs
- FragmentQueryProcessor.cs
- WebPartsPersonalization.cs
- QilFunction.cs
- SynchronousReceiveElement.cs
- DependencyObjectType.cs
- ConfigurationManagerInternalFactory.cs
- ContainerVisual.cs
- BuildProvider.cs
- WorkflowRequestContext.cs
- SystemTcpStatistics.cs
- TrustSection.cs
- COAUTHIDENTITY.cs
- XmlArrayAttribute.cs
- AdCreatedEventArgs.cs