Framework Setup
This commit is contained in:
23
BattleFieldSimulator/packages/DryIoc.4.1.4/CompileTimeDI/CompileTimeRegistrations.Example.cs
vendored
Executable file
23
BattleFieldSimulator/packages/DryIoc.4.1.4/CompileTimeDI/CompileTimeRegistrations.Example.cs
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
#pragma warning disable 1591
|
||||
|
||||
namespace Example
|
||||
{
|
||||
public interface IService { }
|
||||
|
||||
public class MyService : IService
|
||||
{
|
||||
public MyService(IDependencyA a, DependencyB<string> b, RuntimeDependencyC c) { }
|
||||
}
|
||||
|
||||
public interface IDependencyA { }
|
||||
|
||||
public class DependencyA : IDependencyA { }
|
||||
|
||||
public class DependencyB<T>
|
||||
{
|
||||
}
|
||||
|
||||
public class RuntimeDependencyC
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user