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
- XPathArrayIterator.cs
- LinkDescriptor.cs
- BamlTreeUpdater.cs
- CLRBindingWorker.cs
- WindowManager.cs
- FieldNameLookup.cs
- DynamicILGenerator.cs
- RestHandlerFactory.cs
- SchemaElementLookUpTable.cs
- IntegrationExceptionEventArgs.cs
- WebMethodAttribute.cs
- PlaceHolder.cs
- RelationshipConverter.cs
- XmlAutoDetectWriter.cs
- IFormattable.cs
- ToolBarButton.cs
- DesignerObject.cs
- rsa.cs
- ReferentialConstraint.cs
- TextTreeFixupNode.cs
- MulticastOption.cs
- StrongNameMembershipCondition.cs
- Menu.cs
- Mapping.cs
- FileDialogPermission.cs
- sapiproxy.cs
- Expression.cs
- DesignBindingConverter.cs
- TargetConverter.cs
- SqlBuilder.cs
- DragDrop.cs
- SectionXmlInfo.cs
- CustomLineCap.cs
- DllNotFoundException.cs
- SQLBinary.cs
- CqlGenerator.cs
- XamlWriter.cs
- CompressedStack.cs
- DateTimePickerDesigner.cs
- mansign.cs
- TableLayoutCellPaintEventArgs.cs
- StorageEntityContainerMapping.cs
- FreezableOperations.cs
- BuildProviderUtils.cs
- HtmlImage.cs
- CreateUserWizard.cs
- Stack.cs
- DataGridViewAutoSizeModeEventArgs.cs
- AnnotationComponentManager.cs
- DataShape.cs
- ServiceDescriptionContext.cs
- MergeFilterQuery.cs
- WebBrowserEvent.cs
- XmlDictionaryReader.cs
- ActivityExecutionContextCollection.cs
- CompModHelpers.cs
- ContractMapping.cs
- SecurityProtocolFactory.cs
- DynamicValueConverter.cs
- SoapElementAttribute.cs
- _TransmitFileOverlappedAsyncResult.cs
- NonParentingControl.cs
- BufferCache.cs
- PageTheme.cs
- ModelChangedEventArgsImpl.cs
- LogLogRecordEnumerator.cs
- ReferenceService.cs
- translator.cs
- ClientConfigPaths.cs
- ClientScriptItem.cs
- _NetRes.cs
- SynchronizedRandom.cs
- Constant.cs
- CellTreeNode.cs
- MailHeaderInfo.cs
- SmiGettersStream.cs
- FtpWebRequest.cs
- FlowDocumentPage.cs
- TableRow.cs
- PagerSettings.cs
- ObjectManager.cs
- CollectionViewGroupInternal.cs
- SEHException.cs
- Win32SafeHandles.cs
- XmlProcessingInstruction.cs
- XsltCompileContext.cs
- CompModSwitches.cs
- EventHandlersStore.cs
- EntityContainerEmitter.cs
- XmlException.cs
- Propagator.cs
- DefaultShape.cs
- AnimationException.cs
- IntPtr.cs
- HttpCapabilitiesSectionHandler.cs
- PropertyGridDesigner.cs
- CompoundFileReference.cs
- ActivityBindForm.cs
- NetworkStream.cs
- Odbc32.cs