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
- HtmlButton.cs
- OciEnlistContext.cs
- FrameworkPropertyMetadata.cs
- SslStream.cs
- StructuredType.cs
- BinaryReader.cs
- SQLMembershipProvider.cs
- XhtmlBasicLiteralTextAdapter.cs
- RawAppCommandInputReport.cs
- unsafenativemethodstextservices.cs
- MatrixUtil.cs
- WorkflowTransactionOptions.cs
- VarRemapper.cs
- dsa.cs
- DoubleKeyFrameCollection.cs
- BitmapEffectDrawingContextState.cs
- BStrWrapper.cs
- ReflectionUtil.cs
- ToolStripSplitStackLayout.cs
- DeploymentExceptionMapper.cs
- EventToken.cs
- TableLayoutSettingsTypeConverter.cs
- Operators.cs
- RandomDelayQueuedSendsAsyncResult.cs
- ExpandableObjectConverter.cs
- PresentationTraceSources.cs
- HttpRawResponse.cs
- XmlWrappingReader.cs
- URL.cs
- Fonts.cs
- DateTimeStorage.cs
- HostingEnvironmentException.cs
- LinqDataSourceEditData.cs
- InternalConfigHost.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DuplicateWaitObjectException.cs
- DoWhile.cs
- CustomPopupPlacement.cs
- DataPointer.cs
- TypefaceMetricsCache.cs
- DBSqlParser.cs
- SoapSchemaExporter.cs
- CodeArgumentReferenceExpression.cs
- NativeMethods.cs
- QilList.cs
- MessageTransmitTraceRecord.cs
- StructuredCompositeActivityDesigner.cs
- DrawingState.cs
- ToolboxComponentsCreatedEventArgs.cs
- MergablePropertyAttribute.cs
- RequestQueue.cs
- ResourceExpressionBuilder.cs
- TableLayoutStyle.cs
- NotifyParentPropertyAttribute.cs
- XmlReflectionMember.cs
- HtmlFormWrapper.cs
- ApplicationManager.cs
- SqlConnectionPoolGroupProviderInfo.cs
- MsmqInputMessagePool.cs
- AdapterDictionary.cs
- FormViewPagerRow.cs
- DataGridTextBox.cs
- DPCustomTypeDescriptor.cs
- PointLight.cs
- FrameworkElementAutomationPeer.cs
- MemberAccessException.cs
- TreeView.cs
- MethodAccessException.cs
- SharedUtils.cs
- ListBoxDesigner.cs
- ObjectStorage.cs
- LabelLiteral.cs
- SmtpDigestAuthenticationModule.cs
- XPathDescendantIterator.cs
- SmiTypedGetterSetter.cs
- SubqueryRules.cs
- MediaTimeline.cs
- SliderAutomationPeer.cs
- DispatcherExceptionFilterEventArgs.cs
- TriggerActionCollection.cs
- CalendarTable.cs
- DefaultExpressionVisitor.cs
- TraceLog.cs
- SvcMapFileLoader.cs
- ToolStripItemTextRenderEventArgs.cs
- ListViewUpdatedEventArgs.cs
- OpenCollectionAsyncResult.cs
- Label.cs
- SplitterPanel.cs
- ArithmeticException.cs
- RequestCachePolicy.cs
- ImageSourceTypeConverter.cs
- TransformConverter.cs
- PathStreamGeometryContext.cs
- DynamicQueryableWrapper.cs
- StylusPointPropertyInfo.cs
- RemotingAttributes.cs
- EventHandlerList.cs
- Partitioner.cs
- SafeFileMappingHandle.cs