Skip to content
B1Z0NPublic

About

Source generator to get seamlessly lazy at compile time.

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazysh source generator

See this for detailed tutorial.

Limitations

Unfortunately, as this project helped me to find out, we can't be more implicit about source generation. Compiler can't run through all usages of LazyshFactory, get all such interfaces and generate lazies for them on demand. It won't work as the C++ templates do. You should always register it with some kind of static compile-time field/attribute/declaration and so on.

BUT

If you think it's possible and have some hints on how to do it(how to actually emulate C++ tempaltes in C# source generation + C# generics),

THEN

please contact me.

About

Source generator to get seamlessly lazy at compile time.

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages