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
- ResourceExpression.cs
- TypeElementCollection.cs
- ServiceAuthorizationElement.cs
- ResourceProviderFactory.cs
- Visual.cs
- EmissiveMaterial.cs
- COM2Enum.cs
- FormatterServices.cs
- Input.cs
- TypeDelegator.cs
- DockAndAnchorLayout.cs
- ADMembershipUser.cs
- FormsAuthenticationConfiguration.cs
- StringExpressionSet.cs
- ListViewTableCell.cs
- DetectEofStream.cs
- PolyBezierSegment.cs
- VirtualPathProvider.cs
- VisualStateChangedEventArgs.cs
- OperationFormatStyle.cs
- TypeUnloadedException.cs
- PropertyEntry.cs
- WinInetCache.cs
- RequestTimeoutManager.cs
- Freezable.cs
- FreezableOperations.cs
- ZoneLinkButton.cs
- RequestCachingSection.cs
- DropDownList.cs
- AssociationProvider.cs
- selecteditemcollection.cs
- WebPartDescriptionCollection.cs
- EntityContainerRelationshipSetEnd.cs
- NavigationPropertySingletonExpression.cs
- HostingEnvironment.cs
- GestureRecognizer.cs
- NamedPipeAppDomainProtocolHandler.cs
- DuplexChannel.cs
- _FtpControlStream.cs
- LicFileLicenseProvider.cs
- Stroke.cs
- XappLauncher.cs
- WrappedIUnknown.cs
- Utils.cs
- FragmentNavigationEventArgs.cs
- WriteStateInfoBase.cs
- TextBox.cs
- LogReserveAndAppendState.cs
- ScalarRestriction.cs
- ExtensibleClassFactory.cs
- HttpDictionary.cs
- SubMenuStyle.cs
- FileDialog_Vista.cs
- XmlLoader.cs
- Region.cs
- VectorCollectionValueSerializer.cs
- ApplicationActivator.cs
- ContentControl.cs
- XpsResource.cs
- TemplateBindingExpressionConverter.cs
- Literal.cs
- CompilerGlobalScopeAttribute.cs
- IpcManager.cs
- MetadataArtifactLoader.cs
- BinaryConverter.cs
- QuestionEventArgs.cs
- Drawing.cs
- BindableTemplateBuilder.cs
- DataTableMappingCollection.cs
- Attachment.cs
- XmlSchemaAttributeGroupRef.cs
- ScrollItemProviderWrapper.cs
- OperationInvokerBehavior.cs
- GridToolTip.cs
- RtfToken.cs
- StringValueSerializer.cs
- DetailsViewRowCollection.cs
- DataColumnSelectionConverter.cs
- ExpressionConverter.cs
- MediaContext.cs
- MonthCalendar.cs
- SoapTransportImporter.cs
- DebuggerAttributes.cs
- XmlSubtreeReader.cs
- documentsequencetextcontainer.cs
- BaseDataBoundControl.cs
- GrammarBuilderWildcard.cs
- PtsPage.cs
- Translator.cs
- EntityException.cs
- PngBitmapEncoder.cs
- TypeDelegator.cs
- SqlResolver.cs
- Point3DValueSerializer.cs
- DesignerTransaction.cs
- NetworkAddressChange.cs
- WorkflowDefinitionDispenser.cs
- InputGestureCollection.cs
- SchemaMapping.cs
- TimeSpanSecondsConverter.cs