/// <summary>
 /// Visits the specified enum type.
 /// </summary>
 /// <param name="enumType">Type of the enum.</param>
 public override void Visit(EnumType enumType)
 {
     Write("[DataContract]");
     WriteLinkLine(enumType);
     Write("public enum");
     Write(" ");
     Write(enumType.Name);
     WriteSpace();
     {
         OpenBrace();
         foreach (Expression fieldDeclaration in enumType.Values)
         {
             WriteLinkLine(fieldDeclaration);
             VisitDynamic(fieldDeclaration);
             WriteLine(",");
         }
         CloseBrace(false).Write(";").WriteLine();
     }
 }
예제 #2
0
 /// <inheritdoc/>
 public bool Equals(EnumType other)
 {
     return base.Equals(other);
 }
예제 #3
0
파일: EnumType.cs 프로젝트: vol16bit/xenko
 /// <inheritdoc/>
 public bool Equals(EnumType other)
 {
     return(base.Equals(other));
 }