public override string Result(string dataType, string propertyName) { if (AddAttritbute) { FactoryString.Append("\n\t\t" + AttributeFactory.AddAttribute(AttributeType.ToString(), AttributeValue)); } FactoryString.Append($"\n\t\t{AccessModifier.GetDescription()} {dataType} {propertyName} {{ get; set; }}"); return(FactoryString.ToString()); }
public override string Result(string dataType, string name) { if (AddAttritbute) { FactoryString.Append("\n" + AttributeFactory.AddAttribute(AttributeType.ToString(), AttributeValue)); } FactoryString.Append($"\n\t{AccessModifier.GetDescription()} class {name}"); FactoryString.Append("\n\t{"); FactoryString.Append($"{Properties}"); FactoryString.Append("\n\t}"); return(FactoryString.ToString()); }