Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs')
-rw-r--r--mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs b/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs
index 4be6da4cf77..c22c8fc653d 100644
--- a/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs
+++ b/mcs/class/System/Microsoft.CSharp/CSharpCodeGenerator.cs
@@ -503,7 +503,10 @@ namespace Mono.CSharp
OutputMemberAccessModifier( attributes );
OutputFieldScopeModifier( attributes );
- OutputTypeNamePair( field.Type, GetSafeName (field.Name) );
+ if (IsCurrentEnum)
+ Output.Write(field.Name);
+ else
+ OutputTypeNamePair( field.Type, GetSafeName (field.Name) );
CodeExpression initExpression = field.InitExpression;
if ( initExpression != null ) {