Browse Source

Simplified and stabilised the getting of the base of a method.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/908/head
Dimitar Dobrev 9 years ago
parent
commit
b71a37d154
  1. 2
      src/AST/Method.cs

2
src/AST/Method.cs

@ -124,7 +124,7 @@ namespace CppSharp.AST @@ -124,7 +124,7 @@ namespace CppSharp.AST
set { isOverride = value; }
}
public Method BaseMethod => IsOverride ? OverriddenMethods[0] : null;
public Method BaseMethod => OverriddenMethods.FirstOrDefault();
// True if the method is final / sealed.
public bool IsFinal { get; set; }

Loading…
Cancel
Save