Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是新手。我想知道您如何编写Init如下方法的声明。
Init
Role role = Manager.Init<Role>();
假设这Manager是一个类,它看起来像:
Manager
class Manager { // ... public static T Init<T>() { // ... } }