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
- TypeUsage.cs
- SamlAuthenticationClaimResource.cs
- ConfigurationValidatorAttribute.cs
- TextBoxBase.cs
- AutomationPropertyInfo.cs
- ObjectItemCachedAssemblyLoader.cs
- Rect3DConverter.cs
- Array.cs
- KnownTypesHelper.cs
- FieldAccessException.cs
- BatchWriter.cs
- DataGridViewIntLinkedList.cs
- CommandDevice.cs
- SourceLineInfo.cs
- GeometryModel3D.cs
- IconBitmapDecoder.cs
- Identity.cs
- ResXBuildProvider.cs
- X509Utils.cs
- ErrorWebPart.cs
- TypeBuilder.cs
- InProcStateClientManager.cs
- TextDecoration.cs
- RadioButtonFlatAdapter.cs
- XsltConvert.cs
- HwndSourceParameters.cs
- ProcessInputEventArgs.cs
- RandomNumberGenerator.cs
- unsafeIndexingFilterStream.cs
- HttpCachePolicyElement.cs
- HttpCapabilitiesSectionHandler.cs
- WebPartVerbCollection.cs
- TypeCacheManager.cs
- MatrixTransform3D.cs
- XsdCachingReader.cs
- ValidationManager.cs
- CodeNamespace.cs
- SoapBinding.cs
- SynchronizedDispatch.cs
- RpcCryptoContext.cs
- ReadonlyMessageFilter.cs
- FormsAuthenticationUser.cs
- SystemResourceHost.cs
- HttpInputStream.cs
- Component.cs
- HierarchicalDataBoundControlAdapter.cs
- ExtentJoinTreeNode.cs
- baseaxisquery.cs
- NativeCppClassAttribute.cs
- WorkflowRuntimeServiceElement.cs
- PeerResolver.cs
- DashStyle.cs
- FormatStringEditor.cs
- EventLog.cs
- RegexBoyerMoore.cs
- WindowsRichEditRange.cs
- SqlBinder.cs
- SmiEventSink_DeferedProcessing.cs
- JoinElimination.cs
- DataKeyArray.cs
- MenuItemBinding.cs
- TabItemWrapperAutomationPeer.cs
- OperationAbortedException.cs
- Attribute.cs
- DbCommandTree.cs
- SecurityDescriptor.cs
- InternalConfigSettingsFactory.cs
- XmlNodeChangedEventArgs.cs
- MappingException.cs
- CrossSiteScriptingValidation.cs
- IdnElement.cs
- SecurityElement.cs
- WeakReferenceEnumerator.cs
- SqlDependencyListener.cs
- ItemCollectionEditor.cs
- AuthorizationRule.cs
- UnorderedHashRepartitionStream.cs
- unsafeIndexingFilterStream.cs
- DependencyProperty.cs
- TextDecorationCollection.cs
- prefixendpointaddressmessagefilter.cs
- AdornerHitTestResult.cs
- List.cs
- EmptyControlCollection.cs
- SQLInt64Storage.cs
- SqlDataSourceStatusEventArgs.cs
- BamlLocalizableResource.cs
- SystemTcpStatistics.cs
- WebReference.cs
- SqlInfoMessageEvent.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- FontUnit.cs
- TextEmbeddedObject.cs
- InterleavedZipPartStream.cs
- BinaryExpression.cs
- MethodBuilderInstantiation.cs
- DragDrop.cs
- PagesChangedEventArgs.cs
- RegionData.cs
- ToolStripTextBox.cs