Browse Source

Generated comments for variables (static fields in C#).

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/492/head
Dimitar Dobrev 10 years ago
parent
commit
1e195a166a
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -1204,6 +1204,8 @@ namespace CppSharp.Generators.CSharp
private void GenerateVariable(Class @class, Type type, Variable variable) private void GenerateVariable(Class @class, Type type, Variable variable)
{ {
PushBlock(CSharpBlockKind.Variable); PushBlock(CSharpBlockKind.Variable);
GenerateDeclarationCommon(variable);
WriteLine("public static {0} {1}", type, variable.Name); WriteLine("public static {0} {1}", type, variable.Name);
WriteStartBraceIndent(); WriteStartBraceIndent();

Loading…
Cancel
Save