-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
对于类型为泛型参数的成员,应该获取所有具体的实现而非基类声明的参数? #3
Comments
或者都获取也行,可以手动排除含有泛型参数的成员 |
确认了下,是可以获取的。 class Student
{
[DirectRetrieve]
List<int> ints;
} foreach(var a in Retriever.GetAllAttributes<DirectRetrieveAttribute>())
{
print(a.targetInfo);
}
// outputs: System.Collections.Generic.List`1[System.Int32] ints |
不是这种,是要带泛型参数(GenericParameter)的
debug的结果是只获取到了 |
这种可以使用接口方式获取 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我在使用UnityInjection时,会导致无法注入类型为泛型参数的成员
The text was updated successfully, but these errors were encountered: