Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeMember.cs / 1305376 / 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
- ConfigXmlText.cs
- CapacityStreamGeometryContext.cs
- TextEditor.cs
- ElementUtil.cs
- WebRequestModuleElement.cs
- CodeExporter.cs
- InvalidOperationException.cs
- EntityException.cs
- TypeReference.cs
- ModelTreeEnumerator.cs
- RemotingAttributes.cs
- backend.cs
- SamlNameIdentifierClaimResource.cs
- SizeAnimationBase.cs
- cryptoapiTransform.cs
- BitStream.cs
- NativeWindow.cs
- ReferencedCollectionType.cs
- BezierSegment.cs
- BrowserDefinitionCollection.cs
- HtmlControl.cs
- PropertyChangedEventManager.cs
- MasterPageCodeDomTreeGenerator.cs
- DictionaryTraceRecord.cs
- OdbcException.cs
- Util.cs
- PerformanceCounterPermissionEntry.cs
- DoubleAnimationBase.cs
- PropertyTab.cs
- UrlMappingsModule.cs
- SchemeSettingElement.cs
- DefaultSection.cs
- LabelDesigner.cs
- TickBar.cs
- _SSPIWrapper.cs
- UserNamePasswordClientCredential.cs
- LambdaCompiler.Logical.cs
- IssuedTokenClientElement.cs
- DbDeleteCommandTree.cs
- DataSourceXmlElementAttribute.cs
- newinstructionaction.cs
- SpeechSynthesizer.cs
- MultipleViewProviderWrapper.cs
- HyperLink.cs
- DirectoryInfo.cs
- SafeNativeMethods.cs
- XmlRawWriter.cs
- ChangeProcessor.cs
- RelationalExpressions.cs
- FloaterBaseParagraph.cs
- BorderGapMaskConverter.cs
- TaskForm.cs
- EdmProviderManifest.cs
- XmlArrayItemAttributes.cs
- CodeCommentStatement.cs
- CollectionType.cs
- StylusCaptureWithinProperty.cs
- TableLayoutPanelCellPosition.cs
- StrokeNode.cs
- FlowDocumentPage.cs
- DesignerHierarchicalDataSourceView.cs
- PeerNearMe.cs
- SqlDataSourceSummaryPanel.cs
- BindUriHelper.cs
- DataGridViewDataErrorEventArgs.cs
- HandlerMappingMemo.cs
- SerializationUtilities.cs
- ListCollectionView.cs
- LateBoundBitmapDecoder.cs
- GeneralTransform3DTo2D.cs
- XsdCachingReader.cs
- StylesEditorDialog.cs
- OrderedEnumerableRowCollection.cs
- Attributes.cs
- WebInvokeAttribute.cs
- PropertyMetadata.cs
- DataServiceKeyAttribute.cs
- LayoutManager.cs
- TextContainerChangeEventArgs.cs
- CompositeFontInfo.cs
- StringReader.cs
- NativeMethods.cs
- ManagedFilter.cs
- TransactionScope.cs
- XmlTextReaderImpl.cs
- EventMappingSettings.cs
- RtfControls.cs
- WinCategoryAttribute.cs
- PropertyGeneratedEventArgs.cs
- RoutedEvent.cs
- CustomCategoryAttribute.cs
- SqlDeflator.cs
- PeerEndPoint.cs
- OciEnlistContext.cs
- TypographyProperties.cs
- ProjectedSlot.cs
- Collection.cs
- XmlDownloadManager.cs
- ListItemConverter.cs
- Root.cs