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
- SqlPersonalizationProvider.cs
- SequentialOutput.cs
- Utilities.cs
- RuleSettingsCollection.cs
- WebErrorHandler.cs
- AppLevelCompilationSectionCache.cs
- EntityDataSourceChangingEventArgs.cs
- SwitchLevelAttribute.cs
- NaturalLanguageHyphenator.cs
- updatecommandorderer.cs
- FocusWithinProperty.cs
- ZipIOCentralDirectoryBlock.cs
- WithStatement.cs
- NamedPipeAppDomainProtocolHandler.cs
- DataGridViewRowConverter.cs
- SingleTagSectionHandler.cs
- PackUriHelper.cs
- AdRotatorDesigner.cs
- LocalBuilder.cs
- CodePageEncoding.cs
- WebPartZoneCollection.cs
- AuthenticateEventArgs.cs
- ListViewUpdatedEventArgs.cs
- SqlBulkCopy.cs
- HostedImpersonationContext.cs
- XmlByteStreamWriter.cs
- EmptyImpersonationContext.cs
- SelectionWordBreaker.cs
- CardSpaceSelector.cs
- ColumnHeaderConverter.cs
- SparseMemoryStream.cs
- HtmlControlPersistable.cs
- MDIControlStrip.cs
- SqlNodeTypeOperators.cs
- WindowShowOrOpenTracker.cs
- PeerNameRecord.cs
- ServiceControllerDesigner.cs
- RectAnimation.cs
- MatrixAnimationUsingKeyFrames.cs
- FixedStringLookup.cs
- ValidationPropertyAttribute.cs
- CultureInfoConverter.cs
- TargetConverter.cs
- DataError.cs
- MissingMemberException.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SmtpNegotiateAuthenticationModule.cs
- OleDbErrorCollection.cs
- StackOverflowException.cs
- httpapplicationstate.cs
- XmlSerializationReader.cs
- NegotiateStream.cs
- SourceCollection.cs
- SmtpMail.cs
- DataGridViewCheckBoxColumn.cs
- TranslateTransform.cs
- ExtractorMetadata.cs
- TraceSwitch.cs
- ServiceOperationWrapper.cs
- ControlPropertyNameConverter.cs
- Thread.cs
- EntityContainerAssociationSetEnd.cs
- InnerItemCollectionView.cs
- CodeMethodInvokeExpression.cs
- GraphicsPathIterator.cs
- MatrixTransform.cs
- CacheDependency.cs
- DebugManager.cs
- OutOfMemoryException.cs
- OptimalTextSource.cs
- OutputCacheProfile.cs
- PerformanceCounterManager.cs
- RNGCryptoServiceProvider.cs
- _WebProxyDataBuilder.cs
- XmlDataImplementation.cs
- BuildProviderUtils.cs
- ServerValidateEventArgs.cs
- TextSpanModifier.cs
- SerializationEventsCache.cs
- figurelengthconverter.cs
- NewItemsContextMenuStrip.cs
- ScrollViewer.cs
- SemaphoreSecurity.cs
- OdbcDataReader.cs
- XmlnsCache.cs
- ColumnBinding.cs
- SeverityFilter.cs
- Padding.cs
- DataTableNewRowEvent.cs
- NumberSubstitution.cs
- TlsSspiNegotiation.cs
- InteropAutomationProvider.cs
- BindingsCollection.cs
- UIElement3D.cs
- ObjectViewFactory.cs
- ErrorFormatterPage.cs
- TextServicesContext.cs
- TypeExtensionConverter.cs
- AccessDataSourceView.cs
- RadioButtonAutomationPeer.cs