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
- MatrixAnimationBase.cs
- HttpDictionary.cs
- ParseHttpDate.cs
- NamespaceCollection.cs
- JsonDeserializer.cs
- TextReader.cs
- VectorValueSerializer.cs
- HttpValueCollection.cs
- NameValueFileSectionHandler.cs
- FormViewPagerRow.cs
- FontStyleConverter.cs
- SqlDependencyListener.cs
- SymLanguageType.cs
- QilScopedVisitor.cs
- ConfigurationValidatorAttribute.cs
- SafeMILHandle.cs
- PrivilegedConfigurationManager.cs
- TextElementAutomationPeer.cs
- WorkflowQueue.cs
- KeyValuePair.cs
- DocumentPageView.cs
- WebRequestModulesSection.cs
- Rectangle.cs
- SystemInformation.cs
- ChangeInterceptorAttribute.cs
- UpdateTranslator.cs
- XmlSchemaObject.cs
- AddingNewEventArgs.cs
- ListViewUpdateEventArgs.cs
- OracleDataReader.cs
- TraceSwitch.cs
- CustomAssemblyResolver.cs
- ComponentEvent.cs
- UpDownEvent.cs
- DrawingImage.cs
- DeviceContext2.cs
- MethodToken.cs
- CalendarDataBindingHandler.cs
- SqlComparer.cs
- InputLanguageCollection.cs
- AlternateViewCollection.cs
- ExecutionEngineException.cs
- DesignerActionVerbList.cs
- KnownTypeAttribute.cs
- WorkflowMarkupSerializationException.cs
- ImageListUtils.cs
- SessionState.cs
- CollectionBuilder.cs
- TextServicesProperty.cs
- UnsafeNativeMethods.cs
- OleDbInfoMessageEvent.cs
- WorkflowDataContext.cs
- XamlToRtfWriter.cs
- RoleBoolean.cs
- ProxyWebPartConnectionCollection.cs
- PolicyStatement.cs
- CryptoConfig.cs
- Hex.cs
- LayoutInformation.cs
- StandardToolWindows.cs
- MailMessageEventArgs.cs
- EntityDataSourceDesigner.cs
- ConfigXmlReader.cs
- AspProxy.cs
- RelationshipFixer.cs
- NetworkInformationException.cs
- UnsafeNativeMethods.cs
- BinaryObjectWriter.cs
- CodeTypeParameterCollection.cs
- ClipboardData.cs
- SynchronizedDispatch.cs
- TransformerTypeCollection.cs
- UnknownMessageReceivedEventArgs.cs
- DesignerAdapterAttribute.cs
- DataGridTextBox.cs
- ScrollItemPattern.cs
- Speller.cs
- ListBoxItemWrapperAutomationPeer.cs
- SimpleMailWebEventProvider.cs
- DependencyPropertyConverter.cs
- PeerToPeerException.cs
- DependencyPropertyChangedEventArgs.cs
- ManualResetEvent.cs
- DateRangeEvent.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- OperationCanceledException.cs
- FileVersion.cs
- ToolStripArrowRenderEventArgs.cs
- WebReferencesBuildProvider.cs
- UnsafeNativeMethods.cs
- BinHexDecoder.cs
- Hashtable.cs
- Emitter.cs
- activationcontext.cs
- QueryCacheManager.cs
- TypeConverterAttribute.cs
- XmlAttributeAttribute.cs
- SqlDependencyListener.cs
- ObservableDictionary.cs
- ApplicationServicesHostFactory.cs