Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDelegate.cs / 1305376 / CodeTypeDelegate.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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. /// ///// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- _NestedSingleAsyncResult.cs
- MediaSystem.cs
- DependentList.cs
- WindowsFormsHostPropertyMap.cs
- WebPartConnectionsEventArgs.cs
- UpdatePanelTrigger.cs
- BrowserCapabilitiesFactoryBase.cs
- QueryPageSettingsEventArgs.cs
- AssemblySettingAttributes.cs
- Parameter.cs
- HyperLink.cs
- MetadataCacheItem.cs
- Rule.cs
- ContainerTracking.cs
- WriterOutput.cs
- XmlILModule.cs
- WebPartCollection.cs
- WsatStrings.cs
- MonikerHelper.cs
- MemberHolder.cs
- CodeDelegateInvokeExpression.cs
- EntityTypeEmitter.cs
- DataGridViewTextBoxColumn.cs
- DetailsViewModeEventArgs.cs
- ListViewInsertEventArgs.cs
- EmptyQuery.cs
- ZipIOFileItemStream.cs
- StorageConditionPropertyMapping.cs
- NonNullItemCollection.cs
- NullPackagingPolicy.cs
- AppDomainManager.cs
- IgnoreDataMemberAttribute.cs
- RequestCacheManager.cs
- LinearGradientBrush.cs
- WebServiceEnumData.cs
- LineGeometry.cs
- RestHandler.cs
- UTF8Encoding.cs
- DoubleAnimationBase.cs
- SimpleMailWebEventProvider.cs
- DataColumn.cs
- OracleTimeSpan.cs
- WorkflowInvoker.cs
- ComProxy.cs
- XhtmlBasicPanelAdapter.cs
- ProfileBuildProvider.cs
- BuildResultCache.cs
- CircleHotSpot.cs
- RadioButtonBaseAdapter.cs
- XmlSchemaIdentityConstraint.cs
- TableCell.cs
- OpenFileDialog.cs
- ContentPlaceHolder.cs
- SatelliteContractVersionAttribute.cs
- DataGrid.cs
- IntellisenseTextBox.designer.cs
- SmiRequestExecutor.cs
- ReferentialConstraint.cs
- Helper.cs
- PassportIdentity.cs
- TextPointer.cs
- PathGeometry.cs
- ButtonBaseAutomationPeer.cs
- EncryptedType.cs
- DBCSCodePageEncoding.cs
- ClientTargetCollection.cs
- LogicalTreeHelper.cs
- GridProviderWrapper.cs
- TextParaLineResult.cs
- metadatamappinghashervisitor.cs
- StrokeNodeOperations.cs
- WindowsGraphicsWrapper.cs
- Bits.cs
- Encoder.cs
- ConfigXmlComment.cs
- TrustSection.cs
- NamedElement.cs
- ProviderBase.cs
- validation.cs
- WebPart.cs
- SerializationFieldInfo.cs
- HuffmanTree.cs
- TextEndOfLine.cs
- Int32Storage.cs
- TTSVoice.cs
- ProcessHostConfigUtils.cs
- AutomationIdentifier.cs
- EncoderReplacementFallback.cs
- ClientSideProviderDescription.cs
- ListItemsPage.cs
- WeakEventManager.cs
- ExtentKey.cs
- ToolStripOverflow.cs
- ChtmlSelectionListAdapter.cs
- ServiceProviders.cs
- XmlLoader.cs
- GeometryDrawing.cs
- ListViewSelectEventArgs.cs
- ProgressChangedEventArgs.cs
- ImageSourceConverter.cs