Browse Source

Fixed GetFunctionNativeIdentifier to work with function operators.

pull/47/merge
triton 12 years ago
parent
commit
df01104ab7
  1. 5
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

5
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -2034,9 +2034,8 @@ namespace CppSharp.Generators.CSharp @@ -2034,9 +2034,8 @@ namespace CppSharp.Generators.CSharp
{
var identifier = SafeIdentifier(function.Name);;
var method = function as Method;
if (method != null && method.IsOperator)
identifier = "Operator" + method.OperatorKind.ToString();
if (function.IsOperator)
identifier = "Operator" + function.OperatorKind.ToString();
var overloads = function.Namespace.GetFunctionOverloads(function)
.ToList();

Loading…
Cancel
Save