Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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 ; } } } }/// Gets or sets the member comment collection members. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SwitchElementsCollection.cs
- DocumentOrderQuery.cs
- UrlAuthorizationModule.cs
- Evidence.cs
- CharUnicodeInfo.cs
- SecurityDocument.cs
- PropertyTabAttribute.cs
- UpdateCompiler.cs
- XmlSchemaSimpleTypeList.cs
- DataServiceExpressionVisitor.cs
- XamlHostingConfiguration.cs
- PartitionerStatic.cs
- PropertyValueUIItem.cs
- LayoutTableCell.cs
- WindowsScrollBar.cs
- AnnotationAdorner.cs
- recordstate.cs
- QilName.cs
- System.Data_BID.cs
- Activator.cs
- DataBindEngine.cs
- WebBrowsableAttribute.cs
- ImmutableObjectAttribute.cs
- Parser.cs
- SqlDataRecord.cs
- DeviceContext.cs
- PropertyGridEditorPart.cs
- SpecialNameAttribute.cs
- XmlDataProvider.cs
- EventMappingSettings.cs
- HttpCapabilitiesBase.cs
- SyncMethodInvoker.cs
- Thumb.cs
- ProcessInfo.cs
- CacheAxisQuery.cs
- DbMetaDataFactory.cs
- HelpEvent.cs
- PassportAuthentication.cs
- FormClosedEvent.cs
- IntPtr.cs
- BuildProvidersCompiler.cs
- CalendarTable.cs
- OracleString.cs
- WebReferencesBuildProvider.cs
- BamlStream.cs
- RectConverter.cs
- CrossAppDomainChannel.cs
- DataListItem.cs
- SynchronizationHandlesCodeDomSerializer.cs
- UInt32.cs
- OLEDB_Util.cs
- Socket.cs
- CompilerError.cs
- _BaseOverlappedAsyncResult.cs
- Component.cs
- AsyncCompletedEventArgs.cs
- Win32.cs
- QueryAsyncResult.cs
- DataGridCaption.cs
- HandlerBase.cs
- Reference.cs
- ISessionStateStore.cs
- Attributes.cs
- DocumentEventArgs.cs
- AuthorizationSection.cs
- ValidationError.cs
- SafeNativeMethods.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- XmlSortKey.cs
- CacheRequest.cs
- ScrollChrome.cs
- ScriptReferenceBase.cs
- BasicHttpMessageSecurity.cs
- StringComparer.cs
- DnsElement.cs
- GenericsInstances.cs
- NumberFormatInfo.cs
- FloatAverageAggregationOperator.cs
- Primitive.cs
- Label.cs
- DataGridHeaderBorder.cs
- PathSegment.cs
- DataViewListener.cs
- XmlSchemaAnnotation.cs
- MouseEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- FileUtil.cs
- SectionXmlInfo.cs
- StreamInfo.cs
- DetailsViewDesigner.cs
- PolyBezierSegmentFigureLogic.cs
- InternalSafeNativeMethods.cs
- SaveFileDialog.cs
- ColumnMapVisitor.cs
- TypeElement.cs
- TabItem.cs
- DetectEofStream.cs
- EntityContainerEmitter.cs
- ContentFilePart.cs
- PersistNameAttribute.cs