You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we can define type aliases as follow using Cache = System.Collections.Generic.Dictionary<string, string>;
but it does not support generic types and needs to be written with full namespaces using Cache<T> = Dictionary<string, T>;
and also it is only in the file scope.
In the context of DDD, it would be a useful feature to have generic and universal type aliases so we can write methods and extension methods for specific yet simple types like using EmailAddress = string;
The text was updated successfully, but these errors were encountered:
Currently we can define type aliases as follow
using Cache = System.Collections.Generic.Dictionary<string, string>;
but it does not support generic types and needs to be written with full namespaces
using Cache<T> = Dictionary<string, T>;
and also it is only in the file scope.
In the context of DDD, it would be a useful feature to have generic and universal type aliases so we can write methods and extension methods for specific yet simple types like
using EmailAddress = string;
The text was updated successfully, but these errors were encountered: