diff --git a/README-RU.md b/README-RU.md index a482eb8..2c08159 100644 --- a/README-RU.md +++ b/README-RU.md @@ -222,6 +222,7 @@ class VelocitySystem : IEcsRun, IEcsInject, IEcsInject +
# Не null инъекции @@ -232,3 +233,8 @@ class VelocitySystem : IEcsRun, IEcsInject, IEcsInject Переданный тип должен иметь конструктор без параметров и быть либо того же типа, что и поле, либо производным от него. Расширение также сообщит, если после завершения предварительной инъекции остались непроинициализированные поля с атрибутом `[DI]`. + +
+ +# Лицензия +MIT Лицензия: [Открыть](LICENSE.md) \ No newline at end of file diff --git a/README.md b/README.md index 798732c..ea86c09 100644 --- a/README.md +++ b/README.md @@ -225,10 +225,16 @@ class VelocitySystem : IEcsRun, IEcsInject, IEcsInject +
# Non-null injections To ensure a field marked with `[DI]` is initialized even if injection does not occur, pass a fallback type to the attribute constructor. In the example below the field `Foo` will receive the injected `Foo` instance or an instance of `FooDummy : Foo` if injection was not performed. > The provided type must have a parameterless constructor and be either the same type as the field or derived from it. -The extension will also report if any `[DI]`-marked fields remain uninitialized after the pre-injection phase. \ No newline at end of file +The extension will also report if any `[DI]`-marked fields remain uninitialized after the pre-injection phase. + +
+ +# License +The MIT License: [Open](LICENSE.md) \ No newline at end of file