Browse Source

Use a GetCSharpSignature instead of calling CSharpSignature directly to set common data like the context kind.

pull/1/head
triton 12 years ago
parent
commit
656e5ecf80
  1. 8
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs

8
src/Generator/Generators/CSharp/CSharpTypePrinter.cs

@ -229,7 +229,7 @@ namespace CppSharp.Generators.CSharp @@ -229,7 +229,7 @@ namespace CppSharp.Generators.CSharp
Context.Type = template;
return new CSharpTypePrinterResult()
{
Type = typeMap.CSharpSignature(Context),
Type = GetCSharpSignature(typeMap),
TypeMap = typeMap
};
}
@ -237,6 +237,12 @@ namespace CppSharp.Generators.CSharp @@ -237,6 +237,12 @@ namespace CppSharp.Generators.CSharp
return decl.Name;
}
private string GetCSharpSignature(TypeMap typeMap)
{
Context.CSharpKind = ContextKind;
return typeMap.CSharpSignature(Context);
}
public CSharpTypePrinterResult VisitTemplateParameterType(
TemplateParameterType param, TypeQualifiers quals)
{

Loading…
Cancel
Save