public static bool IsBaseClass(this ASTRecord record) { Class decl; if (!record.GetParent(out decl)) { return(false); } var recordDecl = record.Object as Class; return(recordDecl != null && recordDecl == decl.BaseClass); }
public static bool IsBaseClass(this ASTRecord record) { Class decl; return(record.GetParent(out decl) && decl.BaseClass == record.Object); }