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
- CachedResourceDictionaryExtension.cs
- PortCache.cs
- XmlExceptionHelper.cs
- StructuredTypeInfo.cs
- CleanUpVirtualizedItemEventArgs.cs
- DateTimeHelper.cs
- HttpResponseInternalWrapper.cs
- ListViewInsertedEventArgs.cs
- MSHTMLHost.cs
- ExpiredSecurityTokenException.cs
- WorkflowItemPresenter.cs
- IISMapPath.cs
- util.cs
- TdsParameterSetter.cs
- ChangePassword.cs
- RotateTransform3D.cs
- KnownAssemblyEntry.cs
- DetailsViewUpdateEventArgs.cs
- RelationshipConstraintValidator.cs
- sitestring.cs
- FamilyMapCollection.cs
- CacheVirtualItemsEvent.cs
- WrapperSecurityCommunicationObject.cs
- Parameter.cs
- CodeGroup.cs
- StorageTypeMapping.cs
- PassportAuthenticationModule.cs
- SpStreamWrapper.cs
- ConnectionPoint.cs
- ViewLoader.cs
- SecondaryIndexDefinition.cs
- HtmlTableRow.cs
- FlowLayout.cs
- ObjectViewFactory.cs
- CacheManager.cs
- NonDualMessageSecurityOverHttpElement.cs
- InputScope.cs
- DBPropSet.cs
- SQlBooleanStorage.cs
- IISMapPath.cs
- Dictionary.cs
- FrameworkElement.cs
- Options.cs
- CqlErrorHelper.cs
- HuffmanTree.cs
- XpsStructure.cs
- TaskScheduler.cs
- RenderTargetBitmap.cs
- lengthconverter.cs
- HwndTarget.cs
- ScriptControlDescriptor.cs
- TdsValueSetter.cs
- MILUtilities.cs
- FramingFormat.cs
- JpegBitmapDecoder.cs
- XmlSchemaException.cs
- ActivityBuilderHelper.cs
- XmlUtf8RawTextWriter.cs
- SqlCrossApplyToCrossJoin.cs
- InputQueue.cs
- InstanceLockQueryResult.cs
- Single.cs
- GeneratedCodeAttribute.cs
- ReferenceService.cs
- ServiceEndpointElement.cs
- ToolStripManager.cs
- SpecularMaterial.cs
- GraphicsState.cs
- ZipQueryOperator.cs
- CacheAxisQuery.cs
- AppendHelper.cs
- Event.cs
- EdmRelationshipRoleAttribute.cs
- ListItemConverter.cs
- WindowsHyperlink.cs
- Int32EqualityComparer.cs
- Label.cs
- CodeAttributeArgumentCollection.cs
- FileSystemInfo.cs
- OdbcRowUpdatingEvent.cs
- AppDomainUnloadedException.cs
- DropDownButton.cs
- CustomError.cs
- RuleProcessor.cs
- WorkflowTransactionService.cs
- TrayIconDesigner.cs
- DataSet.cs
- MaskDescriptor.cs
- UpDownBase.cs
- StreamUpgradeAcceptor.cs
- GroupBox.cs
- FontSourceCollection.cs
- HashSet.cs
- SectionVisual.cs
- SQLCharsStorage.cs
- Win32MouseDevice.cs
- Filter.cs
- CommandEventArgs.cs
- ElementAction.cs
- AccessDataSource.cs