/// <summary>
 /// Generates all the enum type declarations we have determined
 /// are necessary in the client code.
 /// </summary>
 internal void GenerateAllEnumTypes()
 {
     foreach (Type enumType in this._enumTypesToGenerate)
     {
         CodeNamespace       codeNamespace = this.GetOrGenNamespace(enumType.Namespace);
         CodeTypeDeclaration enumTypeDecl  = CodeGenUtilities.CreateEnumTypeDeclaration(enumType, this);
         codeNamespace.Types.Add(enumTypeDecl);
     }
 }