Example #1
0
        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());
        }
Example #2
0
        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());
        }