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();