ClassMember Class

An attribute or a method of a class.

public sealed class ClassMember

Constructors

NameDescription
ClassMember(string)Initializes a new instance of the ClassMember class.

ClassMember(string)

ClassMember.cs

Initializes a new instance of the ClassMember class.

public ClassMember(string text)

Parameters

text string
The member, such as String name or getName() String. The generic types are written List~int~, as in Mermaid, and shown List<int>.

Properties

NameDescription
IsAbstractGets or sets a value that indicates whether the member is abstract: it is in italic (Mermaid *).
IsMethodGets a value that indicates whether the member is a method: its text has parentheses.
IsStaticGets or sets a value that indicates whether the member is static: it is underlined (Mermaid $).
TextGets the member, without its visibility.
VisibilityGets or sets the visibility.

IsAbstract

ClassMember.cs

Gets or sets a value that indicates whether the member is abstract: it is in italic (Mermaid *).

public bool IsAbstract { get; set; }

Property value

bool

Gets a value that indicates whether the member is a method: its text has parentheses.

public bool IsMethod { get; }

Property value

bool

Gets or sets a value that indicates whether the member is static: it is underlined (Mermaid $).

public bool IsStatic { get; set; }

Property value

bool

Gets the member, without its visibility.

public string Text { get; }

Property value

string

Visibility

ClassMember.cs

Gets or sets the visibility.

public ClassMemberVisibility Visibility { get; set; }

Property value

ClassMemberVisibility

Methods

NameDescription
GetDisplayText()Returns the member as it is shown: its visibility, its text with the generic types between angle brackets, and the return type of a method after a colon.
ToString()Returns the text shown.

GetDisplayText()

ClassMember.cs

Returns the member as it is shown: its visibility, its text with the generic types between angle brackets, and the return type of a method after a colon.

public string GetDisplayText()

Returns

string The text shown.

ToString()

ClassMember.cs

Returns the text shown.

public override string ToString()

Returns

string The text shown.