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
- DesignerAttribute.cs
- InkSerializer.cs
- WebZone.cs
- MultipartContentParser.cs
- GridViewColumnHeader.cs
- ServiceModelConfigurationSectionCollection.cs
- SmtpDigestAuthenticationModule.cs
- ObjectCacheSettings.cs
- PartBasedPackageProperties.cs
- ContentOperations.cs
- StyleCollectionEditor.cs
- SizeChangedEventArgs.cs
- SqlRewriteScalarSubqueries.cs
- CssTextWriter.cs
- ArgIterator.cs
- TimeIntervalCollection.cs
- SharedPerformanceCounter.cs
- RuntimeWrappedException.cs
- ActivationServices.cs
- ConnectionDemuxer.cs
- ZipIOExtraFieldElement.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- QueryCacheEntry.cs
- XPathException.cs
- Command.cs
- LocalizedNameDescriptionPair.cs
- ArgumentException.cs
- ThreadStateException.cs
- LabelTarget.cs
- GradientStop.cs
- ProgressBarAutomationPeer.cs
- ExceptionCollection.cs
- ServiceHttpHandlerFactory.cs
- JpegBitmapEncoder.cs
- CharAnimationBase.cs
- NopReturnReader.cs
- DataGridTextBox.cs
- WebPartUserCapability.cs
- documentsequencetextpointer.cs
- HtmlUtf8RawTextWriter.cs
- VersionPair.cs
- validation.cs
- WindowsIdentity.cs
- TypeDependencyAttribute.cs
- Resources.Designer.cs
- ListControlDataBindingHandler.cs
- MultipleViewPattern.cs
- CircleHotSpot.cs
- Propagator.Evaluator.cs
- EntityDataSourceChangingEventArgs.cs
- ICollection.cs
- UnicodeEncoding.cs
- Decoder.cs
- XmlElement.cs
- DurableInstanceProvider.cs
- CodeCompileUnit.cs
- FontUnit.cs
- ModuleBuilder.cs
- CryptoHelper.cs
- RegexNode.cs
- ConstraintManager.cs
- RsaSecurityToken.cs
- SqlCharStream.cs
- XomlSerializationHelpers.cs
- DrawingAttributeSerializer.cs
- KnownTypes.cs
- PersistChildrenAttribute.cs
- MobileUserControl.cs
- WindowHideOrCloseTracker.cs
- PersonalizableAttribute.cs
- MethodBuilderInstantiation.cs
- GeneralTransformCollection.cs
- ActivityExecutorDelegateInfo.cs
- ImagingCache.cs
- FixedSOMLineRanges.cs
- FileDialogCustomPlacesCollection.cs
- ResetableIterator.cs
- ManualResetEvent.cs
- PolicyException.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RegexCompilationInfo.cs
- InputLangChangeRequestEvent.cs
- CancellationTokenRegistration.cs
- CircleHotSpot.cs
- XmlSchemas.cs
- ListItemCollection.cs
- CurrentChangedEventManager.cs
- Blend.cs
- DocComment.cs
- TransformDescriptor.cs
- SizeValueSerializer.cs
- FamilyMap.cs
- SR.cs
- ComplusEndpointConfigContainer.cs
- AnnouncementInnerClientCD1.cs
- ActivationServices.cs
- CodeDomLocalizationProvider.cs
- Int32RectValueSerializer.cs
- EntityViewGenerator.cs
- GuidelineCollection.cs