Vitali Liashchuk
2018-04-11 08:01:58 UTC
Hi guys,
Could anybody clarify is there any option to get exact Type from
generic parameter?
Something like that:
T myFunc<T>()
{
Type type = typeof(T);
}
I've tried to get T.runtimeType but this property contains only obfuscated
js type...
In c# you can achieve this functionality with typeof()
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/typeof
Thanks)
Could anybody clarify is there any option to get exact Type from
generic parameter?
Something like that:
T myFunc<T>()
{
Type type = typeof(T);
}
I've tried to get T.runtimeType but this property contains only obfuscated
js type...
In c# you can achieve this functionality with typeof()
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/typeof
Thanks)
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/52647731-1553-42e1-b918-d3c4bf440442%40dartlang.org.
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/52647731-1553-42e1-b918-d3c4bf440442%40dartlang.org.