From 1e195a166a316fcf113eae6887781cafcc2e37e5 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Fri, 19 Jun 2015 16:07:06 +0300 Subject: [PATCH] Generated comments for variables (static fields in C#). Signed-off-by: Dimitar Dobrev --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 00331344..0f2017a0 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1204,6 +1204,8 @@ namespace CppSharp.Generators.CSharp private void GenerateVariable(Class @class, Type type, Variable variable) { PushBlock(CSharpBlockKind.Variable); + + GenerateDeclarationCommon(variable); WriteLine("public static {0} {1}", type, variable.Name); WriteStartBraceIndent();