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
- AttributeQuery.cs
- CmsInterop.cs
- DBCommand.cs
- NullRuntimeConfig.cs
- PrintDocument.cs
- LinqDataSource.cs
- HtmlWindowCollection.cs
- IsolatedStorageFile.cs
- GlobalAllocSafeHandle.cs
- CommonObjectSecurity.cs
- TypeConverter.cs
- ControlBindingsCollection.cs
- TableSectionStyle.cs
- TimelineGroup.cs
- DataGridViewImageCell.cs
- AnimationTimeline.cs
- ReadWriteObjectLock.cs
- RegexRunnerFactory.cs
- Transform.cs
- LicenseException.cs
- IdentityModelDictionary.cs
- MetadataException.cs
- GeneralTransform3DGroup.cs
- SettingsAttributes.cs
- GlyphingCache.cs
- ApplicationGesture.cs
- XmlAnyElementAttribute.cs
- DataRelation.cs
- Utils.cs
- DataStreams.cs
- CollectionViewSource.cs
- ExtendedProperty.cs
- QilDataSource.cs
- ProfileProvider.cs
- CodeTypeReferenceExpression.cs
- MinMaxParagraphWidth.cs
- PackagePartCollection.cs
- DesignerExtenders.cs
- ModifiableIteratorCollection.cs
- WebServiceEnumData.cs
- AnnotationStore.cs
- WindowInteractionStateTracker.cs
- ParenthesizePropertyNameAttribute.cs
- TransactionsSectionGroup.cs
- ISAPIRuntime.cs
- XamlInt32CollectionSerializer.cs
- QuaternionRotation3D.cs
- CodeGotoStatement.cs
- FunctionImportMapping.cs
- SmtpFailedRecipientsException.cs
- ContainerFilterService.cs
- TiffBitmapEncoder.cs
- MouseDevice.cs
- AssemblyContextControlItem.cs
- RelAssertionDirectKeyIdentifierClause.cs
- UIInitializationException.cs
- StringReader.cs
- _NativeSSPI.cs
- UIPropertyMetadata.cs
- MouseEventArgs.cs
- MouseGestureValueSerializer.cs
- Token.cs
- DataObjectPastingEventArgs.cs
- UnsignedPublishLicense.cs
- DataSourceUtil.cs
- DbgUtil.cs
- HttpCapabilitiesEvaluator.cs
- TreeViewCancelEvent.cs
- SubqueryRules.cs
- TextDpi.cs
- ConstraintCollection.cs
- DiagnosticEventProvider.cs
- Win32Exception.cs
- ScriptResourceAttribute.cs
- TdsParserStateObject.cs
- HMAC.cs
- HebrewCalendar.cs
- IDispatchConstantAttribute.cs
- SHA384CryptoServiceProvider.cs
- HtmlGenericControl.cs
- TrustLevelCollection.cs
- Tool.cs
- FunctionQuery.cs
- GroupBox.cs
- ToolboxItemAttribute.cs
- FontInfo.cs
- typedescriptorpermission.cs
- QueryOptionExpression.cs
- FtpWebResponse.cs
- HeaderedItemsControl.cs
- Visual3DCollection.cs
- GetPageNumberCompletedEventArgs.cs
- Lease.cs
- ButtonBase.cs
- ProfileProvider.cs
- GroupItem.cs
- PersistNameAttribute.cs
- TemplateManager.cs
- HelpInfo.cs
- RoutedEvent.cs