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 / CodeTypeMember.cs / 1 / CodeTypeMember.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 CodeTypeMember : CodeObject { private MemberAttributes attributes = MemberAttributes.Private | MemberAttributes.Final; private string name; private CodeCommentStatementCollection comments = new CodeCommentStatementCollection(); private CodeAttributeDeclarationCollection customAttributes = null; private CodeLinePragma linePragma; // Optionally Serializable [OptionalField] private CodeDirectiveCollection startDirectives = null; [OptionalField] private CodeDirectiveCollection endDirectives = null; ////// Represents a class member. /// ////// public string Name { get { return (name == null) ? string.Empty : name; } set { name = value; } } ////// Gets or sets /// the name of the member. /// ////// public MemberAttributes Attributes { get { return attributes; } set { attributes = value; } } ////// Gets or sets a ///indicating /// the attributes of the member. /// /// public CodeAttributeDeclarationCollection CustomAttributes { get { if (customAttributes == null) { customAttributes = new CodeAttributeDeclarationCollection(); } return customAttributes; } set { customAttributes = value; } } ////// Gets or sets a ///indicating /// the custom attributes of the /// member. /// /// public CodeLinePragma LinePragma { get { return linePragma; } set { linePragma = value; } } ////// The line the statement occurs on. /// ////// public CodeCommentStatementCollection Comments { get { return comments; } } public CodeDirectiveCollection StartDirectives { get { if (startDirectives == null) { startDirectives = new CodeDirectiveCollection(); } return startDirectives; } } public CodeDirectiveCollection EndDirectives { get { if (endDirectives == null) { endDirectives = new CodeDirectiveCollection(); } return endDirectives ; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets the member comment collection members. /// ///// 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 CodeTypeMember : CodeObject { private MemberAttributes attributes = MemberAttributes.Private | MemberAttributes.Final; private string name; private CodeCommentStatementCollection comments = new CodeCommentStatementCollection(); private CodeAttributeDeclarationCollection customAttributes = null; private CodeLinePragma linePragma; // Optionally Serializable [OptionalField] private CodeDirectiveCollection startDirectives = null; [OptionalField] private CodeDirectiveCollection endDirectives = null; ////// Represents a class member. /// ////// public string Name { get { return (name == null) ? string.Empty : name; } set { name = value; } } ////// Gets or sets /// the name of the member. /// ////// public MemberAttributes Attributes { get { return attributes; } set { attributes = value; } } ////// Gets or sets a ///indicating /// the attributes of the member. /// /// public CodeAttributeDeclarationCollection CustomAttributes { get { if (customAttributes == null) { customAttributes = new CodeAttributeDeclarationCollection(); } return customAttributes; } set { customAttributes = value; } } ////// Gets or sets a ///indicating /// the custom attributes of the /// member. /// /// public CodeLinePragma LinePragma { get { return linePragma; } set { linePragma = value; } } ////// The line the statement occurs on. /// ////// public CodeCommentStatementCollection Comments { get { return comments; } } public CodeDirectiveCollection StartDirectives { get { if (startDirectives == null) { startDirectives = new CodeDirectiveCollection(); } return startDirectives; } } public CodeDirectiveCollection EndDirectives { get { if (endDirectives == null) { endDirectives = new CodeDirectiveCollection(); } return endDirectives ; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets the member comment collection members. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CollectionViewGroup.cs
- DropDownButton.cs
- WindowsListViewGroup.cs
- BuildResultCache.cs
- MulticastDelegate.cs
- XmlAnyElementAttribute.cs
- AutomationElement.cs
- ScriptRegistrationManager.cs
- AuditLog.cs
- SoapIncludeAttribute.cs
- OutOfProcStateClientManager.cs
- DataGridCaption.cs
- AtomServiceDocumentSerializer.cs
- MultiByteCodec.cs
- DbDataReader.cs
- EventBuilder.cs
- Msec.cs
- ActivityDesigner.cs
- DetailsViewInsertEventArgs.cs
- CodeAttributeArgument.cs
- XsdValidatingReader.cs
- CodeAccessPermission.cs
- followingsibling.cs
- DataGridRow.cs
- RawUIStateInputReport.cs
- StreamGeometryContext.cs
- DataGridCellEditEndingEventArgs.cs
- MailSettingsSection.cs
- FormatConvertedBitmap.cs
- RangeContentEnumerator.cs
- EditingScopeUndoUnit.cs
- SignatureDescription.cs
- ParameterCollection.cs
- ChooseAction.cs
- JoinTreeSlot.cs
- NoneExcludedImageIndexConverter.cs
- ToolStripSplitStackLayout.cs
- CryptoHandle.cs
- Substitution.cs
- ProxyWebPartManager.cs
- ApplicationSecurityManager.cs
- LineBreak.cs
- AlternateViewCollection.cs
- UserControlParser.cs
- StrongTypingException.cs
- WindowsListViewSubItem.cs
- BinaryMessageEncodingBindingElement.cs
- OwnerDrawPropertyBag.cs
- ImageCodecInfo.cs
- GeneralTransform3DCollection.cs
- SqlLiftIndependentRowExpressions.cs
- IFormattable.cs
- ApplicationManager.cs
- BindUriHelper.cs
- GridViewCommandEventArgs.cs
- DetailsViewPageEventArgs.cs
- SqlRowUpdatingEvent.cs
- DbModificationCommandTree.cs
- ProgressPage.cs
- ToolboxComponentsCreatingEventArgs.cs
- Pens.cs
- PrintDialogDesigner.cs
- SqlBuilder.cs
- TableRow.cs
- HMACSHA512.cs
- _LocalDataStoreMgr.cs
- Table.cs
- DescendentsWalker.cs
- StateChangeEvent.cs
- CqlBlock.cs
- BypassElement.cs
- LinkButton.cs
- IgnoreSectionHandler.cs
- CheckBox.cs
- FactoryId.cs
- SqlUtil.cs
- DataServiceException.cs
- InvalidBodyAccessException.cs
- SinglePageViewer.cs
- HelpEvent.cs
- Lasso.cs
- Base64Stream.cs
- AssemblyName.cs
- DataBoundControlHelper.cs
- SmiEventStream.cs
- XmlAttributes.cs
- HttpResponseHeader.cs
- DurableOperationContext.cs
- HttpCacheParams.cs
- LayoutManager.cs
- UncommonField.cs
- SyndicationDeserializer.cs
- Memoizer.cs
- CodeGenerator.cs
- SkipStoryboardToFill.cs
- ClientData.cs
- CombinedGeometry.cs
- ProfileParameter.cs
- BindingList.cs
- CommandConverter.cs