/// <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(); } }
/// <inheritdoc/> public bool Equals(EnumType other) { return base.Equals(other); }
/// <inheritdoc/> public bool Equals(EnumType other) { return(base.Equals(other)); }