Browse Source

Implement Method.HasSameSignature for signature comparison.

pull/1516/head
Joao Matos 5 years ago committed by João Matos
parent
commit
d46bcd3dda
  1. 7
      src/AST/Method.cs

7
src/AST/Method.cs

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using CppSharp.AST.Extensions;
namespace CppSharp.AST
{
@ -189,6 +189,11 @@ namespace CppSharp.AST @@ -189,6 +189,11 @@ namespace CppSharp.AST
private bool? isOverride;
public bool HasSameSignature(Method other)
{
return Parameters.SequenceEqual(other.Parameters, ParameterTypeComparer.Instance);
}
public override string ToString()
{
return DebugText;

Loading…
Cancel
Save