ClassMembers

Get a list of all public class member.

Members

Static variables

MembersToIgnore
auto MembersToIgnore;
Undocumented in source.

Variables

ClassMembers
enum string[] ClassMembers;
Undocumented in source.

Parameters

T

The class where to list member

Examples

static class Base {
    int baz;
}

static class A : Base {
    int bar;
    string foo;
    private int priv;
}

static assert(ClassMembers!A == ["bar", "foo", "baz"]);
static assert(ClassMembers!(A) != ["bar", "foo"]);

Meta