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
- FunctionUpdateCommand.cs
- AuthenticationServiceManager.cs
- HMACMD5.cs
- PersonalizationProvider.cs
- ServerIdentity.cs
- SyndicationItem.cs
- WindowsComboBox.cs
- UpdateCommandGenerator.cs
- PowerModeChangedEventArgs.cs
- TemplatePropertyEntry.cs
- ThreadStateException.cs
- StructuredTypeEmitter.cs
- ParameterCollection.cs
- WorkflowDurableInstance.cs
- BitmapEffectDrawing.cs
- HashSetDebugView.cs
- TreeNodeEventArgs.cs
- TrackingServices.cs
- DBSchemaTable.cs
- ResizeBehavior.cs
- CompositeDataBoundControl.cs
- ObjectDataSourceStatusEventArgs.cs
- FlowDocumentScrollViewer.cs
- BamlTreeUpdater.cs
- XmlDataFileEditor.cs
- ApplicationSecurityManager.cs
- StrokeCollection2.cs
- ScaleTransform.cs
- SplayTreeNode.cs
- SizeConverter.cs
- DataFormats.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- QuaternionRotation3D.cs
- RayMeshGeometry3DHitTestResult.cs
- ImageInfo.cs
- AspNetSynchronizationContext.cs
- Column.cs
- WorkflowPersistenceContext.cs
- SqlDataSourceSelectingEventArgs.cs
- XsltArgumentList.cs
- ExpandCollapsePattern.cs
- GenericUriParser.cs
- XmlAtomicValue.cs
- DoubleConverter.cs
- PreloadHost.cs
- RoleBoolean.cs
- DataSourceHelper.cs
- PrefixQName.cs
- HostedImpersonationContext.cs
- DecimalAnimationBase.cs
- ParsedAttributeCollection.cs
- DbTransaction.cs
- _SafeNetHandles.cs
- DerivedKeySecurityTokenStub.cs
- DecimalKeyFrameCollection.cs
- TypeListConverter.cs
- Metadata.cs
- AttributeCollection.cs
- ObjectDataSource.cs
- WebPartCollection.cs
- CultureSpecificStringDictionary.cs
- RNGCryptoServiceProvider.cs
- VirtualPathProvider.cs
- ClientSettingsProvider.cs
- SpellerStatusTable.cs
- UTF32Encoding.cs
- ProfileInfo.cs
- TextEditorParagraphs.cs
- Propagator.ExtentPlaceholderCreator.cs
- HTTPNotFoundHandler.cs
- SwitchCase.cs
- DataRecord.cs
- DefaultAutoFieldGenerator.cs
- DataGridBoolColumn.cs
- OracleBoolean.cs
- HtmlCalendarAdapter.cs
- CollectionContainer.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Crypto.cs
- BitmapEncoder.cs
- DataMisalignedException.cs
- RowSpanVector.cs
- thaishape.cs
- TransactionFlowElement.cs
- AnnotationResource.cs
- AlphaSortedEnumConverter.cs
- TimeStampChecker.cs
- Symbol.cs
- NestPullup.cs
- XPathDocument.cs
- CodeDesigner.cs
- Win32PrintDialog.cs
- MultiBinding.cs
- OleStrCAMarshaler.cs
- Listbox.cs
- StackOverflowException.cs
- Evidence.cs
- ProfileEventArgs.cs
- FileAuthorizationModule.cs
- VisualBasicSettings.cs