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
- CollectionChangeEventArgs.cs
- ThemeDirectoryCompiler.cs
- ModifiableIteratorCollection.cs
- InfiniteIntConverter.cs
- SqlMethodCallConverter.cs
- StandardTransformFactory.cs
- FormatSettings.cs
- XmlBinaryReaderSession.cs
- Normalization.cs
- XPathAncestorIterator.cs
- CodeDefaultValueExpression.cs
- WebEventTraceProvider.cs
- PropertyTabAttribute.cs
- OperationFormatStyle.cs
- BindableTemplateBuilder.cs
- ProjectionPlanCompiler.cs
- DataGridViewRowsRemovedEventArgs.cs
- NavigationEventArgs.cs
- FormViewPageEventArgs.cs
- Configuration.cs
- GroupItem.cs
- ResXDataNode.cs
- FolderLevelBuildProvider.cs
- VariableDesigner.xaml.cs
- ObjectComplexPropertyMapping.cs
- CompoundFileStorageReference.cs
- MasterPageParser.cs
- ViewStateModeByIdAttribute.cs
- PostBackOptions.cs
- OleDbParameter.cs
- SessionStateSection.cs
- ResizingMessageFilter.cs
- UnauthorizedWebPart.cs
- ComContractElementCollection.cs
- CodeSnippetExpression.cs
- RecordsAffectedEventArgs.cs
- ProxyGenerator.cs
- ContainerUIElement3D.cs
- DuplicateDetector.cs
- WebSysDefaultValueAttribute.cs
- Misc.cs
- CodeArrayIndexerExpression.cs
- View.cs
- TableCell.cs
- GradientStop.cs
- MouseGesture.cs
- MetadataCache.cs
- RuntimeConfigurationRecord.cs
- GridViewUpdateEventArgs.cs
- ParameterCollection.cs
- DrawingAttributesDefaultValueFactory.cs
- DataControlField.cs
- List.cs
- ExpressionBuilder.cs
- TimeoutException.cs
- StructuredType.cs
- EntryWrittenEventArgs.cs
- UnsafeNativeMethodsPenimc.cs
- CodeNamespaceImport.cs
- VolatileEnlistmentState.cs
- WbemProvider.cs
- FontFamilyValueSerializer.cs
- LinqDataSourceContextData.cs
- ImagingCache.cs
- SqlDataSourceFilteringEventArgs.cs
- AutomationPatternInfo.cs
- RewritingPass.cs
- ProfileServiceManager.cs
- OutputCacheProviderCollection.cs
- basecomparevalidator.cs
- DataViewSetting.cs
- ExeContext.cs
- DatatypeImplementation.cs
- ContentValidator.cs
- ListItemParagraph.cs
- TreeViewBindingsEditor.cs
- TreeBuilderXamlTranslator.cs
- DataControlFieldCell.cs
- StartUpEventArgs.cs
- PenContexts.cs
- ServiceOperation.cs
- LocalizationComments.cs
- ProxyWebPart.cs
- SoapAttributes.cs
- ArgumentsParser.cs
- ControlParameter.cs
- HybridCollection.cs
- RandomDelayQueuedSendsAsyncResult.cs
- ReflectPropertyDescriptor.cs
- PerformanceCounterPermissionAttribute.cs
- DrawTreeNodeEventArgs.cs
- PropertyDescriptors.cs
- TdsParameterSetter.cs
- BridgeDataRecord.cs
- HttpCacheVaryByContentEncodings.cs
- SimpleMailWebEventProvider.cs
- AffineTransform3D.cs
- ScopeCollection.cs
- RequestBringIntoViewEventArgs.cs
- SmiContext.cs