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
- Span.cs
- DetailsViewRow.cs
- KeyedHashAlgorithm.cs
- Crc32Helper.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ValidatingPropertiesEventArgs.cs
- ExtensionDataReader.cs
- WorkflowRuntimeSection.cs
- ToolStrip.cs
- AutomationPropertyInfo.cs
- XmlCountingReader.cs
- _SSPIWrapper.cs
- RegexBoyerMoore.cs
- ReflectionPermission.cs
- BooleanKeyFrameCollection.cs
- DelegatingMessage.cs
- CryptoApi.cs
- XmlSchemaSimpleTypeUnion.cs
- AttributeAction.cs
- OdbcDataReader.cs
- ArrangedElement.cs
- DataContractSerializerMessageContractImporter.cs
- ImageSource.cs
- RewritingProcessor.cs
- SequenceRange.cs
- Container.cs
- VerificationAttribute.cs
- LineBreakRecord.cs
- SourceSwitch.cs
- ToolStripGripRenderEventArgs.cs
- SoapReflectionImporter.cs
- XPathEmptyIterator.cs
- PopupEventArgs.cs
- TextCompositionManager.cs
- XPathExpr.cs
- PackWebRequestFactory.cs
- RandomNumberGenerator.cs
- KnownBoxes.cs
- DefaultTextStore.cs
- DynamicQueryableWrapper.cs
- ExtenderProvidedPropertyAttribute.cs
- ResourceExpressionBuilder.cs
- ImageClickEventArgs.cs
- ReservationNotFoundException.cs
- CryptographicAttribute.cs
- StylusEventArgs.cs
- CounterCreationDataCollection.cs
- DataGridViewMethods.cs
- StaticDataManager.cs
- ErrorHandler.cs
- VerticalAlignConverter.cs
- StreamResourceInfo.cs
- DelegateHelpers.Generated.cs
- MenuItemCollection.cs
- OdbcConnectionStringbuilder.cs
- ImpersonateTokenRef.cs
- RichTextBoxAutomationPeer.cs
- HashAlgorithm.cs
- WebServiceErrorEvent.cs
- embossbitmapeffect.cs
- GetWinFXPath.cs
- FixedSOMPageConstructor.cs
- XmlCharacterData.cs
- ListItemConverter.cs
- ComponentCollection.cs
- BinaryParser.cs
- ToolboxDataAttribute.cs
- GetWinFXPath.cs
- GroupByQueryOperator.cs
- hresults.cs
- Avt.cs
- CodeDomSerializationProvider.cs
- SqlDataSourceParameterParser.cs
- ConfigXmlWhitespace.cs
- ProcessExitedException.cs
- ObjectListTitleAttribute.cs
- WindowsClientCredential.cs
- TableItemPattern.cs
- EventSinkHelperWriter.cs
- StringWriter.cs
- CompositeTypefaceMetrics.cs
- UmAlQuraCalendar.cs
- Imaging.cs
- MemberDescriptor.cs
- TemplateBindingExtension.cs
- InvalidContentTypeException.cs
- CommandHelpers.cs
- XmlObjectSerializer.cs
- COM2ExtendedUITypeEditor.cs
- Semaphore.cs
- QilChoice.cs
- ScrollItemPatternIdentifiers.cs
- SamlAssertionKeyIdentifierClause.cs
- ModelUIElement3D.cs
- HyperLinkStyle.cs
- NotifyParentPropertyAttribute.cs
- TypeUsage.cs
- ValueTypeFixupInfo.cs
- Image.cs
- Table.cs