예제 #1
0
 /// <summary>
 ///     Creates all types associated with the assembly and saves the assembly to disk
 ///     if a directory is specified.
 /// </summary>
 public virtual void Create()
 {
     foreach (IType Class in Classes)
     {
         Class.Create();
     }
     foreach (IType Enum in Enums)
     {
         Enum.Create();
     }
     if (!string.IsNullOrEmpty(Directory))
     {
         Builder.Save(Name + (Type == AssemblyType.Dll ? ".dll" : ".exe"));
     }
 }