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
- XamlClipboardData.cs
- BindingExpressionBase.cs
- MenuItemStyle.cs
- GroupItemAutomationPeer.cs
- PreProcessor.cs
- FeatureSupport.cs
- DataService.cs
- FormViewPageEventArgs.cs
- AttributeCollection.cs
- AdapterDictionary.cs
- ViewPort3D.cs
- CompositeCollection.cs
- VisualStyleInformation.cs
- DataSourceHelper.cs
- CompilationLock.cs
- TemplateBindingExtension.cs
- CompositeControlDesigner.cs
- PrivilegedConfigurationManager.cs
- IntSecurity.cs
- ToolTipService.cs
- Color.cs
- QueryOperationResponseOfT.cs
- CodeValidator.cs
- ListBindingConverter.cs
- TypeListConverter.cs
- ControlCollection.cs
- DocumentGridContextMenu.cs
- Boolean.cs
- ImpersonateTokenRef.cs
- DBParameter.cs
- FixedElement.cs
- RtfControls.cs
- NetTcpBinding.cs
- Crypto.cs
- Msec.cs
- DCSafeHandle.cs
- CryptoProvider.cs
- Attributes.cs
- PlainXmlDeserializer.cs
- DataGridColumnHeadersPresenter.cs
- SystemFonts.cs
- CultureInfoConverter.cs
- SafeRightsManagementEnvironmentHandle.cs
- LabelAutomationPeer.cs
- TransformPattern.cs
- StorageComplexTypeMapping.cs
- NativeMethods.cs
- PropVariant.cs
- CapabilitiesAssignment.cs
- objectquery_tresulttype.cs
- ColumnHeader.cs
- AuthenticodeSignatureInformation.cs
- SemanticBasicElement.cs
- DashStyle.cs
- DataGridAutoFormat.cs
- ColumnTypeConverter.cs
- HtmlControlPersistable.cs
- ParsedRoute.cs
- FastEncoder.cs
- ToolStripDropDownMenu.cs
- DesignerAutoFormat.cs
- PerfService.cs
- SafeArchiveContext.cs
- CriticalFinalizerObject.cs
- DesignBinding.cs
- DrawingDrawingContext.cs
- MatchingStyle.cs
- DbConnectionFactory.cs
- XmlNavigatorStack.cs
- UrlEncodedParameterWriter.cs
- GcSettings.cs
- IncrementalCompileAnalyzer.cs
- CodeDomConfigurationHandler.cs
- CollectionBuilder.cs
- XmlArrayItemAttribute.cs
- CodeRegionDirective.cs
- AttributeEmitter.cs
- MetadataItemSerializer.cs
- SymmetricKey.cs
- GeneratedCodeAttribute.cs
- LinkLabelLinkClickedEvent.cs
- StreamInfo.cs
- XPathArrayIterator.cs
- CompositeActivityDesigner.cs
- WindowsRichEdit.cs
- CopyOnWriteList.cs
- QueryOptionExpression.cs
- TextEditorThreadLocalStore.cs
- DataSourceView.cs
- PositiveTimeSpanValidatorAttribute.cs
- OdbcEnvironment.cs
- MessageFault.cs
- GenericRootAutomationPeer.cs
- DetailsViewDeleteEventArgs.cs
- odbcmetadatacolumnnames.cs
- SelectionProcessor.cs
- FileSecurity.cs
- HttpApplicationFactory.cs
- CodeAttributeDeclaration.cs
- ValidatingPropertiesEventArgs.cs