From 8941031c67538faba9622d26a43c446a9f457bf3 Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 6 May 2013 02:46:58 +0100 Subject: [PATCH] Use CheckIgnoreMethod to check for ignored constructors instead of duplicating logic. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 90e11273..b2d94ad4 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -699,11 +699,7 @@ namespace Cxxi.Generators.CSharp foreach (var ctor in @class.Constructors) { - if (ctor.IsCopyConstructor || ctor.IsMoveConstructor) - continue; - - // Default constructors are not supported in .NET value types. - if (ctor.Parameters.Count == 0 && @class.IsValueType) + if (CheckIgnoreMethod(@class, ctor)) continue; NewLineIfNeeded();