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; ////// [ 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
- SecurityTokenRequirement.cs
- ToolStripPanelCell.cs
- SpecularMaterial.cs
- XmlChildNodes.cs
- cookie.cs
- DataKeyArray.cs
- RuntimeWrappedException.cs
- RuleSetDialog.cs
- MissingSatelliteAssemblyException.cs
- WebServiceAttribute.cs
- CodeSubDirectoriesCollection.cs
- BasicBrowserDialog.designer.cs
- Merger.cs
- BlockCollection.cs
- FormatException.cs
- XamlBrushSerializer.cs
- DesignerForm.cs
- ImportOptions.cs
- Exceptions.cs
- ProtectedConfigurationSection.cs
- StylusPlugin.cs
- _ConnectStream.cs
- MessageFault.cs
- KeySplineConverter.cs
- UserNameSecurityTokenAuthenticator.cs
- ModelPerspective.cs
- RequestBringIntoViewEventArgs.cs
- WorkflowDebuggerSteppingAttribute.cs
- DesignerSerializationVisibilityAttribute.cs
- RedistVersionInfo.cs
- ScriptingAuthenticationServiceSection.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- AdPostCacheSubstitution.cs
- SelectionWordBreaker.cs
- PropertyEntry.cs
- UserControlBuildProvider.cs
- StrokeIntersection.cs
- NoClickablePointException.cs
- OdbcEnvironmentHandle.cs
- Viewport2DVisual3D.cs
- QuaternionValueSerializer.cs
- TemplateGroupCollection.cs
- FrameworkContextData.cs
- SafeNativeMethodsOther.cs
- ToolStripDropDownClosingEventArgs.cs
- XmlToDatasetMap.cs
- Object.cs
- HtmlUtf8RawTextWriter.cs
- SectionXmlInfo.cs
- QuaternionValueSerializer.cs
- UndoEngine.cs
- SortKey.cs
- Localizer.cs
- XPathPatternBuilder.cs
- DataRowChangeEvent.cs
- TemplateControl.cs
- MessageEnumerator.cs
- PanelStyle.cs
- Splitter.cs
- XamlStream.cs
- FolderBrowserDialog.cs
- PassportIdentity.cs
- SocketInformation.cs
- RuntimeResourceSet.cs
- altserialization.cs
- FormViewModeEventArgs.cs
- OracleBFile.cs
- SqlTriggerAttribute.cs
- HttpValueCollection.cs
- ControlsConfig.cs
- OutputCacheProfile.cs
- OleDbErrorCollection.cs
- OleDbTransaction.cs
- RectConverter.cs
- LayoutEngine.cs
- SignatureHelper.cs
- Canvas.cs
- SessionStateSection.cs
- XmlTextWriter.cs
- ExportOptions.cs
- BufferedGraphics.cs
- TypeToken.cs
- UnsafeNativeMethodsTablet.cs
- PackageRelationshipSelector.cs
- MatrixTransform3D.cs
- Point3DIndependentAnimationStorage.cs
- DataGridTable.cs
- GridEntry.cs
- MultiAsyncResult.cs
- DefaultValidator.cs
- SqlParameterCollection.cs
- ISFTagAndGuidCache.cs
- RichListBox.cs
- ExtensibleClassFactory.cs
- RegionInfo.cs
- RuleInfoComparer.cs
- PagerSettings.cs
- ArgumentNullException.cs
- BinaryKeyIdentifierClause.cs
- XPathBuilder.cs