Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsAbstract has no documentation #343

Open
Prinsn opened this issue Aug 11, 2021 · 0 comments
Open

IsAbstract has no documentation #343

Prinsn opened this issue Aug 11, 2021 · 0 comments

Comments

@Prinsn
Copy link

Prinsn commented Aug 11, 2021

Currently trying to utilize this feature and have no idea how to make it work, it emits nothing, and there are no examples as to how to use it, and it does not exist on http://frhagn.github.io/Typewriter/pages/documentation.html

All attempts to use $IsAbstract in template code result in empty strings.

IsAbstract also exists on Type.BaseClass but not on Type?

Trying to use

$Type[$getAbstractString]

  string getAbstractString(Type c){
      var baseClass = c.BaseClass;
      if (baseClass == null)
          return "no base class";
      return baseClass.IsAbstract ? "true" : "false";
  }

Results in no base class for an abstract type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant