Code:
/ FX-1434 / FX-1434 / 1.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
- BreakRecordTable.cs
- TypeLoadException.cs
- StrokeRenderer.cs
- TextModifierScope.cs
- ExtendedProperty.cs
- SmiEventSink.cs
- Ipv6Element.cs
- _WebProxyDataBuilder.cs
- MediaPlayer.cs
- Metafile.cs
- WebRequestModuleElement.cs
- HttpException.cs
- StoragePropertyMapping.cs
- RectConverter.cs
- SequenceNumber.cs
- VariableBinder.cs
- AssertValidation.cs
- ExtractedStateEntry.cs
- TableLayoutSettingsTypeConverter.cs
- DPAPIProtectedConfigurationProvider.cs
- CatalogPartChrome.cs
- BoolExpressionVisitors.cs
- TextClipboardData.cs
- DbParameterCollectionHelper.cs
- FormViewUpdatedEventArgs.cs
- DispatcherProcessingDisabled.cs
- HttpContext.cs
- XmlWrappingReader.cs
- SocketStream.cs
- ChangeProcessor.cs
- ObjectStateManager.cs
- HashAlgorithm.cs
- WmlSelectionListAdapter.cs
- ReadOnlyTernaryTree.cs
- PropertyGridEditorPart.cs
- SoapFormatExtensions.cs
- CodeTypeReference.cs
- BitmapEffectGroup.cs
- EditingCoordinator.cs
- SkipStoryboardToFill.cs
- ListViewTableRow.cs
- XPathNodeHelper.cs
- MetadataItem.cs
- ImageDrawing.cs
- PeerToPeerException.cs
- PersonalizableTypeEntry.cs
- VarRefManager.cs
- ListViewDeletedEventArgs.cs
- FixedSOMLineCollection.cs
- DataGridRelationshipRow.cs
- RoleManagerModule.cs
- WizardSideBarListControlItem.cs
- LineBreak.cs
- CompositeDataBoundControl.cs
- CodeNamespace.cs
- ModelFunction.cs
- SafeNativeMethods.cs
- WindowsSysHeader.cs
- EdmFunctions.cs
- ListViewHitTestInfo.cs
- NonParentingControl.cs
- CompositeControl.cs
- SetStateEventArgs.cs
- Int16KeyFrameCollection.cs
- WindowsFormsHelpers.cs
- FullTextBreakpoint.cs
- EnumType.cs
- RectAnimationClockResource.cs
- FlowDocumentFormatter.cs
- CommandConverter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SpellerStatusTable.cs
- MailDefinition.cs
- CorrelationTokenTypeConvertor.cs
- ManifestResourceInfo.cs
- XmlDomTextWriter.cs
- RbTree.cs
- CachedPathData.cs
- UrlAuthFailedErrorFormatter.cs
- SetterBase.cs
- PtsCache.cs
- Int64AnimationUsingKeyFrames.cs
- SQLResource.cs
- DateTimePicker.cs
- TextDecorationUnitValidation.cs
- Animatable.cs
- CalendarTable.cs
- Stylus.cs
- BaseComponentEditor.cs
- Pkcs9Attribute.cs
- WebException.cs
- DiagnosticSection.cs
- SBCSCodePageEncoding.cs
- ConcurrentDictionary.cs
- WebPartHelpVerb.cs
- StreamingContext.cs
- StringInfo.cs
- QuadTree.cs
- DatagridviewDisplayedBandsData.cs
- TypeConverter.cs