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.
如何从 Object 类型的对象访问 ResultsView?
Object table = null; Class.CallSomeMethod( ref table);
table有结果视图,我不知道如何访问它?
table
只需将table变量转换为适当的类型:
((SomeTypeWithResultView)table).ResultsView
Object table = null; var varTable = ((SomeTableType)table).ResultsView; method(ref varTable);