Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: DependencyAttribute.cs without T generic type #48

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

vulcandragi
Copy link
Member

using System.Windows;
using TakasakiStudio.Lina.AutoDependencyInjection.Attributes;

namespace Project.Windows;

[Dependency<>()]
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
    }
}

Adicionar uma maneira de injetar a window pelo auto dependency sem precisar criar uma interface fantasma

@Takasakiii Takasakiii merged commit 4a68ff2 into dotnet8 Feb 7, 2024
8 checks passed
@Takasakiii Takasakiii deleted the dotnet8-di-without-interface branch February 7, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants