Browse Source

Added helper property to get the constructors of a class.

pull/1/head
triton 13 years ago
parent
commit
dd8c3ea9c7
  1. 9
      src/Bridge/Class.cs

9
src/Bridge/Class.cs

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Linq;
namespace Cxxi
{
@ -111,6 +112,14 @@ namespace Cxxi @@ -111,6 +112,14 @@ namespace Cxxi
get { return Type == ClassType.RefType; }
}
public IEnumerable<Method> Constructors
{
get {
return Methods.Where(
method => method.IsConstructor || method.IsCopyConstructor);
}
}
public override T Visit<T>(IDeclVisitor<T> visitor)
{
return visitor.VisitClassDecl(this);

Loading…
Cancel
Save