Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeMember.cs / 1305376 / CodeTypeMember.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- 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; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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 ; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets the member comment collection members. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImageFormat.cs
- SoapElementAttribute.cs
- DataGridLength.cs
- _MultipleConnectAsync.cs
- DatagridviewDisplayedBandsData.cs
- MetadataHelper.cs
- AuthorizationSection.cs
- ApplicationProxyInternal.cs
- IntegerValidator.cs
- BaseTemplateParser.cs
- ToolConsole.cs
- ProfileParameter.cs
- WebServiceParameterData.cs
- BamlLocalizabilityResolver.cs
- IsolatedStorageFileStream.cs
- _DomainName.cs
- ReceiveContent.cs
- RightsManagementEncryptedStream.cs
- TypeLoader.cs
- BamlRecordReader.cs
- EntityContainerEmitter.cs
- ProbeDuplex11AsyncResult.cs
- Int32.cs
- ColorInterpolationModeValidation.cs
- UriSection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- HandledMouseEvent.cs
- ListViewSortEventArgs.cs
- DispatcherExceptionFilterEventArgs.cs
- XamlReaderHelper.cs
- HttpApplicationFactory.cs
- DataGridViewTextBoxEditingControl.cs
- BaseAddressPrefixFilterElement.cs
- BaseDataList.cs
- SendMailErrorEventArgs.cs
- FieldToken.cs
- DataViewSettingCollection.cs
- XmlDataLoader.cs
- ListControl.cs
- EventProviderWriter.cs
- smtppermission.cs
- ObjectAnimationBase.cs
- AddInBase.cs
- StylusPointProperty.cs
- IdnElement.cs
- Vector3dCollection.cs
- XPathSelfQuery.cs
- LifetimeServices.cs
- XPathSingletonIterator.cs
- RetriableClipboard.cs
- ProfilePropertyNameValidator.cs
- ThaiBuddhistCalendar.cs
- StreamGeometry.cs
- DbSourceCommand.cs
- RegexCompilationInfo.cs
- NativeMethods.cs
- WebExceptionStatus.cs
- FileAuthorizationModule.cs
- DefaultAuthorizationContext.cs
- Bold.cs
- UrlMapping.cs
- TextServicesCompartmentContext.cs
- DataPagerCommandEventArgs.cs
- BuildTopDownAttribute.cs
- DataFormats.cs
- EventLogPermissionEntryCollection.cs
- DynamicFilterExpression.cs
- LoadedOrUnloadedOperation.cs
- StylusPointCollection.cs
- ExtensibleClassFactory.cs
- EntityTypeBase.cs
- PolicyStatement.cs
- SqlConnectionStringBuilder.cs
- BufferedReadStream.cs
- HttpServerUtilityWrapper.cs
- UserNamePasswordValidator.cs
- HttpModuleAction.cs
- SqlCommandAsyncResult.cs
- HeaderCollection.cs
- IPEndPoint.cs
- NavigatorInvalidBodyAccessException.cs
- RuleInfoComparer.cs
- KeyInfo.cs
- RuntimeConfigLKG.cs
- RC2.cs
- Rect3D.cs
- DataSysAttribute.cs
- XmlSchemaSet.cs
- SecurityKeyEntropyMode.cs
- KeyTimeConverter.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- EdmItemCollection.OcAssemblyCache.cs
- OleDbCommand.cs
- OutOfMemoryException.cs
- ExceptionHandler.cs
- Evidence.cs
- WhiteSpaceTrimStringConverter.cs
- XmlStreamStore.cs
- CommentEmitter.cs
- LabelLiteral.cs