File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ CsGenerator
87
87
88
88
## How to use it
89
89
Following is first example of ComplexNumber class and then creating its ClassModel for writing to Complex.cs
90
- There are 2 option to configure it:
91
- -one is using Fluent methods (A)
92
- -and other with pure classes and properties (B).
90
+ There are 2 option to configure it:
91
+ -one is using Fluent methods (A)
92
+ -and other with pure classes and properties (B)
93
93
94
94
Class we want to generate:
95
95
```` csharp
@@ -149,6 +149,8 @@ namespace CsCodeGenerator.Tests
149
149
````
150
150
151
151
A) Code to do it with Fluent methods:
152
+ (Fluent calls are composed with BaseElement, when configuring deeper level we need to instanciate with New and call in the scope;
153
+ To be able to get subElements returned to main scope then more extension methods would be needed - one is commented in code: ` WithPropertyReturn ` )
152
154
```` csharp
153
155
var usingDirectives = new List <string >
154
156
{
You can’t perform that action at this time.
0 commit comments