Skip to content

Commit

Permalink
Update readme to remove references to the Construct attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
intentor committed Jul 21, 2016
1 parent 55c488b commit 941f42e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ The structure of *Adic* is divided into five parts:

*Adic* is organized internally into different namespaces that represents the framework components. However, the commonly used components are under `Adic` namespace:

1. Attributes (`Inject`, `Construct`, `PostConstruct`);
1. `Inject` attribute;
2. `InjectionContainer`;
3. `IFactory`;
4. Extensions (like `ContextRoot` and `UnityBinding`).
Expand Down Expand Up @@ -661,7 +661,7 @@ namespace MyNamespace {

### <a id="multiple-constructors"></a>Multiple constructors

In case you have multiple constructors, it's possible to indicate to *Adic* which one should be used by decorating it with the `Construct` attribute:
In case you have multiple constructors, it's possible to indicate to *Adic* which one should be used by decorating it with the `Inject` attribute:

```cs
namespace MyNamespace {
Expand All @@ -680,7 +680,7 @@ namespace MyNamespace {
/// Class constructor.
/// </summary>
/// <param name="parameterName">Parameter description</param>
[Construct]
[Inject]
public MyClass(Type parameterName) {
...
}
Expand Down Expand Up @@ -1941,7 +1941,7 @@ Exemplifies the use of condition identifiers on injections.

### 4. Prefabs

Exemplifies how to bind to prefabs and the use of `PostConstruct` as a second constructor.
Exemplifies how to bind to prefabs and the use of method injection as a second constructor.

### 5. Commander

Expand Down

0 comments on commit 941f42e

Please sign in to comment.