Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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;
///
///
/// Represents a class member.
///
///
[
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;
///
///
/// Gets or sets
/// the name of the member.
///
///
public string Name {
get {
return (name == null) ? string.Empty : name;
}
set {
name = value;
}
}
///
///
/// Gets or sets a indicating
/// the attributes of the member.
///
///
public MemberAttributes Attributes {
get {
return attributes;
}
set {
attributes = value;
}
}
///
///
/// Gets or sets a indicating
/// the custom attributes of the
/// member.
///
///
public CodeAttributeDeclarationCollection CustomAttributes {
get {
if (customAttributes == null) {
customAttributes = new CodeAttributeDeclarationCollection();
}
return customAttributes;
}
set {
customAttributes = value;
}
}
///
///
/// The line the statement occurs on.
///
///
public CodeLinePragma LinePragma {
get {
return linePragma;
}
set {
linePragma = value;
}
}
///
///
/// Gets or sets the member comment collection members.
///
///
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 ;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
///
///
/// Represents a class member.
///
///
[
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;
///
///
/// Gets or sets
/// the name of the member.
///
///
public string Name {
get {
return (name == null) ? string.Empty : name;
}
set {
name = value;
}
}
///
///
/// Gets or sets a indicating
/// the attributes of the member.
///
///
public MemberAttributes Attributes {
get {
return attributes;
}
set {
attributes = value;
}
}
///
///
/// Gets or sets a indicating
/// the custom attributes of the
/// member.
///
///
public CodeAttributeDeclarationCollection CustomAttributes {
get {
if (customAttributes == null) {
customAttributes = new CodeAttributeDeclarationCollection();
}
return customAttributes;
}
set {
customAttributes = value;
}
}
///
///
/// The line the statement occurs on.
///
///
public CodeLinePragma LinePragma {
get {
return linePragma;
}
set {
linePragma = value;
}
}
///
///
/// Gets or sets the member comment collection members.
///
///
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 ;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MimeMultiPart.cs
- ContractAdapter.cs
- HtmlLiteralTextAdapter.cs
- XmlValueConverter.cs
- OracleRowUpdatedEventArgs.cs
- SmtpDigestAuthenticationModule.cs
- TemplateColumn.cs
- Matrix3DValueSerializer.cs
- Stack.cs
- OdbcParameter.cs
- MethodCallConverter.cs
- RegisteredExpandoAttribute.cs
- MasterPageCodeDomTreeGenerator.cs
- base64Transforms.cs
- Application.cs
- TextAction.cs
- XamlStream.cs
- WebPartVerbCollection.cs
- SchemaName.cs
- ProviderConnectionPoint.cs
- LicFileLicenseProvider.cs
- ImageSourceValueSerializer.cs
- AdRotator.cs
- LocalizedNameDescriptionPair.cs
- StringOutput.cs
- AssertSection.cs
- JournalEntryStack.cs
- DataSourceCacheDurationConverter.cs
- DBBindings.cs
- PropertyEmitterBase.cs
- TextTreeExtractElementUndoUnit.cs
- DataServiceQueryProvider.cs
- ToolStripKeyboardHandlingService.cs
- XmlSchemaValidator.cs
- Calendar.cs
- TypeConverterAttribute.cs
- WebConfigurationFileMap.cs
- CustomErrorsSection.cs
- EventMemberCodeDomSerializer.cs
- ProviderSettingsCollection.cs
- TextTreeNode.cs
- Timer.cs
- HtmlContainerControl.cs
- WinEventWrap.cs
- ParseElement.cs
- Model3DGroup.cs
- UnrecognizedPolicyAssertionElement.cs
- ImageMapEventArgs.cs
- TypeSource.cs
- SurrogateEncoder.cs
- EpmSyndicationContentSerializer.cs
- ContainerFilterService.cs
- Knowncolors.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TableItemStyle.cs
- DesignerVerbCollection.cs
- SafeProcessHandle.cs
- RequestUriProcessor.cs
- CompressedStack.cs
- ContextMenu.cs
- PageThemeBuildProvider.cs
- PolicyVersion.cs
- CellLabel.cs
- ConfigurationCollectionAttribute.cs
- BrushConverter.cs
- ConnectionProviderAttribute.cs
- webclient.cs
- ClientEventManager.cs
- ImageDrawing.cs
- Baml6Assembly.cs
- CssStyleCollection.cs
- PersistNameAttribute.cs
- WebBrowsableAttribute.cs
- HandlerFactoryCache.cs
- IntSecurity.cs
- Graphics.cs
- UriExt.cs
- SqlTriggerAttribute.cs
- MessageDescriptionCollection.cs
- PrinterResolution.cs
- OneOfElement.cs
- DynamicArgumentDesigner.xaml.cs
- Match.cs
- MetadataSet.cs
- DataSourceXmlClassAttribute.cs
- TreeViewImageIndexConverter.cs
- FixedSOMGroup.cs
- InputMethodStateChangeEventArgs.cs
- ExpressionPrefixAttribute.cs
- CustomAttributeBuilder.cs
- PropertyBuilder.cs
- MethodBuilder.cs
- TemplateNameScope.cs
- CodeGenerator.cs
- Metadata.cs
- DoubleAnimationUsingPath.cs
- XmlTextReaderImpl.cs
- isolationinterop.cs
- FrameworkReadOnlyPropertyMetadata.cs
- TabControlCancelEvent.cs