Skip to content

Commit

Permalink
Revert "格式化去掉命名空间,方便写博客"
Browse files Browse the repository at this point in the history
This reverts commit 63c7a55.
  • Loading branch information
lindexi committed Oct 21, 2023
1 parent 63c7a55 commit ae076c8
Showing 1 changed file with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,14 @@ 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 ae076c8

Please sign in to comment.