Skip to content

Add the idea of TryAs(Type, out bool success) #44

Description

@ipjohnson
bool success;

c.Export(typeof(BasicService)).TryAs(typeof(IBasicService), out success);

Only exports BasicService if no other IBasicService exist.

Also need to add a TryByInterface and TryByInterfaces to ExportTypeSetConfiguration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions