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
- KeyPressEvent.cs
- JavaScriptSerializer.cs
- WasEndpointConfigContainer.cs
- CodeGen.cs
- TypeLibConverter.cs
- SiteMapPath.cs
- DataAdapter.cs
- ItemMap.cs
- SmtpFailedRecipientException.cs
- LongValidatorAttribute.cs
- SiteMapSection.cs
- ExpandoClass.cs
- ValueQuery.cs
- Int16.cs
- DelimitedListTraceListener.cs
- ProtocolViolationException.cs
- ListViewInsertionMark.cs
- ToolZone.cs
- GradientStop.cs
- TabItemAutomationPeer.cs
- ChtmlPageAdapter.cs
- DesignerObject.cs
- TheQuery.cs
- AudioSignalProblemOccurredEventArgs.cs
- TraceHandler.cs
- ConfigXmlSignificantWhitespace.cs
- DbModificationClause.cs
- QueryResponse.cs
- LineGeometry.cs
- InternalControlCollection.cs
- IdlingCommunicationPool.cs
- Attributes.cs
- ListViewAutomationPeer.cs
- BulletedList.cs
- EndpointAddressElementBase.cs
- FrameworkElementFactory.cs
- TextServicesManager.cs
- XmlWriter.cs
- ProjectionRewriter.cs
- InternalConfigEventArgs.cs
- ImageMetadata.cs
- CapabilitiesPattern.cs
- Point3DAnimationUsingKeyFrames.cs
- SelectedCellsCollection.cs
- WebMethodAttribute.cs
- PictureBoxDesigner.cs
- TransformProviderWrapper.cs
- EraserBehavior.cs
- RegexWorker.cs
- ReadOnlyHierarchicalDataSourceView.cs
- InkCanvasSelectionAdorner.cs
- CellPartitioner.cs
- DeobfuscatingStream.cs
- Part.cs
- DetailsViewRowCollection.cs
- TextRangeProviderWrapper.cs
- EntityConnection.cs
- EntityProxyFactory.cs
- MenuItemCollectionEditorDialog.cs
- PropertyBuilder.cs
- StronglyTypedResourceBuilder.cs
- DataGridViewCellParsingEventArgs.cs
- BindingNavigator.cs
- SerialReceived.cs
- DSASignatureFormatter.cs
- ContainerActivationHelper.cs
- ScriptControl.cs
- C14NUtil.cs
- RepeatButton.cs
- WindowsToolbar.cs
- FrameworkElement.cs
- ObjectDataSourceEventArgs.cs
- DashStyle.cs
- ProcessHostConfigUtils.cs
- PlanCompilerUtil.cs
- DocumentReference.cs
- CheckBox.cs
- Icon.cs
- EntityObject.cs
- MergablePropertyAttribute.cs
- SmiRequestExecutor.cs
- XmlNamespaceDeclarationsAttribute.cs
- HtmlLinkAdapter.cs
- ToolStripMenuItemDesigner.cs
- CacheDependency.cs
- ScrollChrome.cs
- VideoDrawing.cs
- ServiceModelSecurityTokenTypes.cs
- WebPartVerb.cs
- GridViewColumnHeaderAutomationPeer.cs
- TargetInvocationException.cs
- ListItem.cs
- CompatibleComparer.cs
- FunctionNode.cs
- COM2FontConverter.cs
- XmlText.cs
- CertificateElement.cs
- WorkflowWebHostingModule.cs
- MarkupExtensionParser.cs
- complextypematerializer.cs