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;
///
///
/// Represents a class or nested class.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTypeDelegate : CodeTypeDeclaration {
private CodeParameterDeclarationExpressionCollection parameters = new CodeParameterDeclarationExpressionCollection();
private CodeTypeReference returnType;
///
///
/// Initializes a new instance of .
///
///
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;
}
///
///
/// Gets or sets the return type of the delegate.
///
///
public CodeTypeReference ReturnType {
get {
if (returnType == null) {
returnType = new CodeTypeReference("");
}
return returnType;
}
set {
returnType = value;
}
}
///
///
/// The parameters of the delegate.
///
///
public CodeParameterDeclarationExpressionCollection Parameters {
get {
return parameters;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
///
///
/// Represents a class or nested class.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTypeDelegate : CodeTypeDeclaration {
private CodeParameterDeclarationExpressionCollection parameters = new CodeParameterDeclarationExpressionCollection();
private CodeTypeReference returnType;
///
///
/// Initializes a new instance of .
///
///
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;
}
///
///
/// Gets or sets the return type of the delegate.
///
///
public CodeTypeReference ReturnType {
get {
if (returnType == null) {
returnType = new CodeTypeReference("");
}
return returnType;
}
set {
returnType = value;
}
}
///
///
/// The parameters of the delegate.
///
///
public CodeParameterDeclarationExpressionCollection Parameters {
get {
return parameters;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextRangeBase.cs
- EntityModelSchemaGenerator.cs
- ThreadInterruptedException.cs
- SimpleRecyclingCache.cs
- ContextQuery.cs
- XmlExpressionDumper.cs
- RequestCache.cs
- SqlRecordBuffer.cs
- PropertyMapper.cs
- autovalidator.cs
- DataGridViewLinkCell.cs
- METAHEADER.cs
- SystemColors.cs
- SymbolUsageManager.cs
- TraceFilter.cs
- SourceFileInfo.cs
- AlphabeticalEnumConverter.cs
- FullTextLine.cs
- SqlNotificationEventArgs.cs
- CompilerScope.cs
- DefaultParameterValueAttribute.cs
- HttpHandlersSection.cs
- OleDbFactory.cs
- FactoryId.cs
- LicenseContext.cs
- UnitySerializationHolder.cs
- DateTimeParse.cs
- SQLByteStorage.cs
- DependencyObject.cs
- ListView.cs
- OperatingSystem.cs
- MergablePropertyAttribute.cs
- CodeVariableReferenceExpression.cs
- PasswordDeriveBytes.cs
- X509SecurityToken.cs
- SoapIncludeAttribute.cs
- PageContentCollection.cs
- Encoder.cs
- MailFileEditor.cs
- DataGridPageChangedEventArgs.cs
- XmlUtf8RawTextWriter.cs
- WsdlInspector.cs
- SizeIndependentAnimationStorage.cs
- RepeatInfo.cs
- xmlsaver.cs
- EncoderBestFitFallback.cs
- SByteConverter.cs
- UntypedNullExpression.cs
- WindowsGraphicsWrapper.cs
- ViewEvent.cs
- HtmlElementErrorEventArgs.cs
- Expression.cs
- CodeCompileUnit.cs
- InputLanguageManager.cs
- PropertyInfo.cs
- SafeMarshalContext.cs
- UIHelper.cs
- controlskin.cs
- QueuePathDialog.cs
- HtmlControlPersistable.cs
- EmptyStringExpandableObjectConverter.cs
- OperationContext.cs
- ImageList.cs
- Classification.cs
- DataServiceContext.cs
- SslStreamSecurityElement.cs
- CustomErrorCollection.cs
- PenThread.cs
- FieldToken.cs
- InvokeProviderWrapper.cs
- GridItemProviderWrapper.cs
- InputMethodStateTypeInfo.cs
- HtmlInputPassword.cs
- ConnectionConsumerAttribute.cs
- HttpProcessUtility.cs
- PageAdapter.cs
- ValidationEventArgs.cs
- ColumnCollection.cs
- SetStoryboardSpeedRatio.cs
- NavigationPropertyEmitter.cs
- HtmlInputHidden.cs
- Directory.cs
- Span.cs
- DataRelation.cs
- FileDialog.cs
- ResourceDictionaryCollection.cs
- List.cs
- ListView.cs
- ImageList.cs
- WebPartEditorOkVerb.cs
- QueryCacheManager.cs
- PropertyMap.cs
- PrintPageEvent.cs
- Asn1IntegerConverter.cs
- _Win32.cs
- AppSettingsReader.cs
- _AutoWebProxyScriptHelper.cs
- LinkConverter.cs
- TimeSpanValidator.cs
- UnmanagedMarshal.cs