Skip to content

Commit

Permalink
Merge pull request #6 from xaviersolau/dev
Browse files Browse the repository at this point in the history
Fix documentation space issue.
  • Loading branch information
xaviersolau authored Apr 27, 2019
2 parents a4f3719 + 8d7f0ef commit 72d6f1f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ using SoloX.GeneratorTools.Core.CSharp;

void Setup(IServiceCollection serviceCollection)
{
serviceCollection.AddCSharpToolsGenerator();
serviceCollection.AddCSharpToolsGenerator();
}
```

Expand All @@ -219,7 +219,7 @@ Let's define a `ModelGenerator` with a `ICSharpWorkspace` constructor argument:
{
this.workspace = workspace;
}
}
}
```

Now we can use the `workspace` to register a project with the pattern we need and we can load the sources.
Expand Down Expand Up @@ -247,7 +247,7 @@ Once all is loaded we can get the `IModelBase` descriptor and get all interfaces
// Get the base interface in order to find all extended interfaces that need to be implemented.
var modelBaseInterface = resolver.Find("IModelBase").Single() as IGenericDeclaration;

var allModelInterfaces = modelBaseInterface.ExtendedBy;
var allModelInterfaces = modelBaseInterface.ExtendedBy;
```

### Generate your class implementation from a given interface and the pattern
Expand All @@ -258,13 +258,13 @@ the pattern and the model interface:
```csharp
// Create the Implementation Generator with a file generator, the locator and the pattern interface/class.
var generator = new ImplementationGenerator(
// Tells that we want to write the implementation in a file.
// Tells that we want to write the implementation in a file.
new FileGenerator(),
// Tells that we want the implementation class to be located at the same location than its model interface.
// Tells that we want the implementation class to be located at the same location than its model interface.
new RelativeLocator(projectFolder, projectNameSpace),
// The pattern interface we loaded previously.
// The pattern interface we loaded previously.
patternInterfaceDeclaration,
// The pattern implementation we loaded previously.
// The pattern implementation we loaded previously.
patternImplementationDeclaration);
```

Expand Down

0 comments on commit 72d6f1f

Please sign in to comment.