Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BindToObject.cs
- DateTimeFormat.cs
- RSAOAEPKeyExchangeDeformatter.cs
- EmissiveMaterial.cs
- SignerInfo.cs
- SiteOfOriginContainer.cs
- QilDataSource.cs
- ToolStripControlHost.cs
- PropertyValueChangedEvent.cs
- RequiredFieldValidator.cs
- COAUTHINFO.cs
- IsolationInterop.cs
- TimerEventSubscriptionCollection.cs
- ListViewPagedDataSource.cs
- SystemThemeKey.cs
- DBDataPermissionAttribute.cs
- ProxyFragment.cs
- MobileUserControlDesigner.cs
- RouteItem.cs
- EntityException.cs
- FamilyMapCollection.cs
- ListViewInsertionMark.cs
- SafeNativeMethodsOther.cs
- HttpValueCollection.cs
- ClientConfigurationHost.cs
- WorkBatch.cs
- ConfigXmlAttribute.cs
- PropertyDescriptorGridEntry.cs
- WebAdminConfigurationHelper.cs
- iisPickupDirectory.cs
- DurableOperationAttribute.cs
- WeakEventManager.cs
- UrlAuthorizationModule.cs
- ModuleBuilderData.cs
- GridViewCellAutomationPeer.cs
- _StreamFramer.cs
- EntitySqlQueryState.cs
- DataGridPagerStyle.cs
- DataGridViewCellStyleBuilderDialog.cs
- EntitySqlQueryCacheKey.cs
- ListViewItem.cs
- Stopwatch.cs
- AddInToken.cs
- SQLInt16.cs
- CodeVariableDeclarationStatement.cs
- AutomationPeer.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Restrictions.cs
- ReferentialConstraint.cs
- SqlDataSourceFilteringEventArgs.cs
- UriExt.cs
- RolePrincipal.cs
- BufferedGraphicsContext.cs
- DrawingContext.cs
- NonSerializedAttribute.cs
- RangeValidator.cs
- DataGridClipboardHelper.cs
- WebControlsSection.cs
- ConditionedDesigner.cs
- ListItemCollection.cs
- MarkupCompiler.cs
- PackageRelationshipSelector.cs
- PropertyMetadata.cs
- Utility.cs
- XmlReflectionMember.cs
- Encoder.cs
- MessageBox.cs
- InlineObject.cs
- Rotation3DAnimationBase.cs
- HwndTarget.cs
- COM2ExtendedBrowsingHandler.cs
- CorrelationTokenTypeConvertor.cs
- ParseNumbers.cs
- TabControlAutomationPeer.cs
- WindowsPrincipal.cs
- TransactionFilter.cs
- Color.cs
- DbQueryCommandTree.cs
- SessionState.cs
- BordersPage.cs
- BinaryCommonClasses.cs
- OptimalBreakSession.cs
- ObjectQuery.cs
- WebBaseEventKeyComparer.cs
- ConnectionStringsExpressionBuilder.cs
- Hashtable.cs
- AdapterDictionary.cs
- ByteStream.cs
- TextInfo.cs
- ProfileBuildProvider.cs
- DesignerLabelAdapter.cs
- MaterialGroup.cs
- FragmentNavigationEventArgs.cs
- ExecutionScope.cs
- SqlCommand.cs
- SystemTcpStatistics.cs
- ParallelEnumerable.cs
- IsolatedStorageFileStream.cs
- MetadataCollection.cs
- ChildTable.cs