using IdType = System.Guid;
using RowType = System.Tuple<System.Guid, object>
works. while
using IdType = System.Guid;
using RowType = System.Tuple<IdType, object>
does not compile.
The IdType
declared at first row cannot be used with further using
it seems.
Is there a way around this?
This will work:
using IdType = System.Guid;
namespace x
{
using RowType = System.Tuple<IdType, object>;
}
The reason being that type aliases only apply within declarations in the namespace within which they are contained.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With