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
- PersonalizableAttribute.cs
- ListCollectionView.cs
- KnownTypesHelper.cs
- AssociationTypeEmitter.cs
- TimelineGroup.cs
- UnregisterInfo.cs
- InternalSafeNativeMethods.cs
- XPathBuilder.cs
- WS2007FederationHttpBinding.cs
- TdsParserSessionPool.cs
- DateTimeConstantAttribute.cs
- LastQueryOperator.cs
- ActionFrame.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- ExpressionLexer.cs
- XmlNodeChangedEventManager.cs
- AppDomainAttributes.cs
- ExpressionDumper.cs
- RPIdentityRequirement.cs
- TreeViewHitTestInfo.cs
- WindowsToolbar.cs
- IISUnsafeMethods.cs
- QilName.cs
- ConfigurationSchemaErrors.cs
- ButtonField.cs
- COM2ColorConverter.cs
- SafeCryptoHandles.cs
- PartialCachingControl.cs
- ProjectionQueryOptionExpression.cs
- ListViewItem.cs
- NotificationContext.cs
- PinProtectionHelper.cs
- NullableLongSumAggregationOperator.cs
- ExpandedWrapper.cs
- SQLGuidStorage.cs
- ListView.cs
- Paragraph.cs
- MemberListBinding.cs
- GACIdentityPermission.cs
- SelectionRange.cs
- EntityProviderServices.cs
- _OSSOCK.cs
- CheckBoxFlatAdapter.cs
- IncrementalCompileAnalyzer.cs
- Tokenizer.cs
- SessionState.cs
- CapabilitiesSection.cs
- ViewKeyConstraint.cs
- DataGridViewComboBoxCell.cs
- NetworkStream.cs
- StoreContentChangedEventArgs.cs
- WebHttpSecurityElement.cs
- MemberHolder.cs
- EntitySqlException.cs
- AnnotationHelper.cs
- MetabaseServerConfig.cs
- AttributeUsageAttribute.cs
- TransformProviderWrapper.cs
- RenderData.cs
- EventSetter.cs
- EditableRegion.cs
- AppDomainManager.cs
- CompilationPass2Task.cs
- UnmanagedMarshal.cs
- DataObject.cs
- HtmlFormWrapper.cs
- ApplicationProxyInternal.cs
- TextDecorationUnitValidation.cs
- HandlerBase.cs
- IListConverters.cs
- DataFormat.cs
- PropertyStore.cs
- ReturnType.cs
- DataExpression.cs
- WebConfigurationHostFileChange.cs
- ResXResourceReader.cs
- DataError.cs
- SQLBinary.cs
- XmlObjectSerializerReadContextComplex.cs
- WinInet.cs
- BinarySerializer.cs
- CodeDOMUtility.cs
- NamespaceTable.cs
- LayoutInformation.cs
- Stacktrace.cs
- DataSourceXmlSubItemAttribute.cs
- StringExpressionSet.cs
- MailWebEventProvider.cs
- FilteredReadOnlyMetadataCollection.cs
- TypeDependencyAttribute.cs
- Relationship.cs
- TargetInvocationException.cs
- MbpInfo.cs
- CopyNamespacesAction.cs
- EventEntry.cs
- System.Data.OracleClient_BID.cs
- NavigationWindow.cs
- Config.cs
- XamlReader.cs
- printdlgexmarshaler.cs