Browse Source

Add public auto property support to cli - the core needs rewiring next. For #5.

tags/v0.5
Starbeamrainbowlabs 3 years ago
parent
commit
28f9cd9975
2 changed files with 6 additions and 2 deletions
  1. 3
    2
      cscz/ClassGenerator.cs
  2. 3
    0
      cscz/Program.cs

+ 3
- 2
cscz/ClassGenerator.cs View File

@@ -11,7 +11,8 @@ namespace cscz
public enum GenerationMode
{
PrivateVariablesWithProperties,
PublicVariables
PublicVariables,
PublicAutoProperties
}

public class ClassGenerator
@@ -213,4 +214,4 @@ namespace cscz
return str.ToLower();
}
}
}
}

+ 3
- 0
cscz/Program.cs View File

@@ -37,6 +37,9 @@ namespace cscz
case "public":
generationMode = GenerationMode.PublicVariables;
break;
case "public-auto":
generationMove = GenerationMode.PublicAutoProperties;
break;
default:
Console.Error.WriteLine("Error: Unknown argument '{0}'.", args[i]);
return 1;

Loading…
Cancel
Save