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
- XmlException.cs
- StateManagedCollection.cs
- Int32KeyFrameCollection.cs
- ColorConvertedBitmap.cs
- DecimalKeyFrameCollection.cs
- ElementHost.cs
- EUCJPEncoding.cs
- SectionInformation.cs
- MsmqHostedTransportConfiguration.cs
- PropertyBuilder.cs
- StoreContentChangedEventArgs.cs
- AutomationElement.cs
- RegexStringValidator.cs
- WebAdminConfigurationHelper.cs
- ControlBindingsCollection.cs
- PtsCache.cs
- _TransmitFileOverlappedAsyncResult.cs
- PermissionSetTriple.cs
- TabOrder.cs
- ShaperBuffers.cs
- ApplicationContext.cs
- FeatureSupport.cs
- MetaModel.cs
- VisualStyleInformation.cs
- ApplicationInfo.cs
- CreateUserWizard.cs
- ValidationError.cs
- TransactedReceiveScope.cs
- Thickness.cs
- ObjectSet.cs
- ScrollBar.cs
- UserControl.cs
- FilterableAttribute.cs
- NavigationProgressEventArgs.cs
- InternalBufferManager.cs
- TileModeValidation.cs
- DoubleAnimation.cs
- SystemException.cs
- AccessDataSourceView.cs
- DrawListViewSubItemEventArgs.cs
- FlowLayout.cs
- HostingEnvironment.cs
- DataGridViewTextBoxCell.cs
- ModuleBuilderData.cs
- Unit.cs
- SqlBuilder.cs
- KerberosTokenFactoryCredential.cs
- ServiceDeploymentInfo.cs
- XpsResourceDictionary.cs
- ConfigurationManager.cs
- Win32SafeHandles.cs
- ScriptServiceAttribute.cs
- CompilerScopeManager.cs
- FramingChannels.cs
- PaintValueEventArgs.cs
- ClonableStack.cs
- SafeCloseHandleCritical.cs
- TreeChangeInfo.cs
- DataGridViewCellStateChangedEventArgs.cs
- PerspectiveCamera.cs
- ChannelFactoryRefCache.cs
- KnownBoxes.cs
- SelectionPattern.cs
- DiagnosticTrace.cs
- LinearQuaternionKeyFrame.cs
- BamlRecordWriter.cs
- SessionPageStateSection.cs
- FileAuthorizationModule.cs
- XmlHelper.cs
- DnsPermission.cs
- Trigger.cs
- XmlWrappingReader.cs
- SqlClientFactory.cs
- MailWebEventProvider.cs
- AsymmetricCryptoHandle.cs
- XmlException.cs
- DataKeyArray.cs
- Trace.cs
- SqlNodeAnnotation.cs
- DocumentCollection.cs
- RuntimeConfigLKG.cs
- IdentifierService.cs
- MailHeaderInfo.cs
- COM2PropertyBuilderUITypeEditor.cs
- _KerberosClient.cs
- DesignerListAdapter.cs
- x509store.cs
- XmlSchemaValidator.cs
- TextEditor.cs
- ExpressionNode.cs
- Content.cs
- PtsHelper.cs
- RowUpdatedEventArgs.cs
- TextEditorTyping.cs
- MenuCommands.cs
- ValidatedControlConverter.cs
- TableAdapterManagerGenerator.cs
- WebPartMinimizeVerb.cs
- ApplicationDirectory.cs
- PropertyItemInternal.cs