Skip to content

Commit

Permalink
格式化去掉命名空间,方便写博客
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Oct 21, 2023
1 parent 01aeafe commit 63c7a55
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,28 @@ static void Main(string[] args)
Console.WriteLine(exportedTypeMetadata.RealType.FullName);
}
}

[dotnetCampus.Telescope.TelescopeExportAttribute()]
private static partial IEnumerable<(Type type, FooAttribute attribute, Func<Base> creator)> ExportFooEnumerable();

[dotnetCampus.Telescope.TelescopeExportAttribute(IncludeReferences = true)]
private partial IEnumerable<(Type, Func<DemoLib1.F1> xxx)> ExportF1Enumerable();
}

internal partial class Program
{
private static partial IEnumerable<(Type type, FooAttribute attribute, Func<Base> creator)> ExportFooEnumerable()
{
yield return (typeof(F1), new FooAttribute()
{

}, () => new F1());
yield return (typeof(F2),
new FooAttribute()
{

}, () => new F2());
}
}

[F1]
public class CurrentFoo : DemoLib1.F1
{
Expand Down

0 comments on commit 63c7a55

Please sign in to comment.