From 6f71abc99f7fb433c12fa7dd69ba577d1f2a7a4d Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 26 Feb 2013 23:50:53 +0000 Subject: [PATCH] Only ignore constructors with zero parameters (which might not be the default). --- src/Generator/Generators/CLI/CLITextTemplate.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Generator/Generators/CLI/CLITextTemplate.cs b/src/Generator/Generators/CLI/CLITextTemplate.cs index 217311f3..9e3a6044 100644 --- a/src/Generator/Generators/CLI/CLITextTemplate.cs +++ b/src/Generator/Generators/CLI/CLITextTemplate.cs @@ -91,10 +91,9 @@ namespace Cxxi.Generators.CLI { if (method.Ignore) return true; - if (@class.IsAbstract && method.IsConstructor) - return true; + bool isEmptyCtor = method.IsConstructor && method.Parameters.Count == 0; - if (@class.IsValueType && method.IsDefaultConstructor) + if (@class.IsValueType && isEmptyCtor) return true; if (method.IsCopyConstructor || method.IsMoveConstructor)