How could I go about calling a method on a static class given the class name and the method name, please?
For example:
Given System.Environment
and GetFolderPath
, I'd like to use Reflection
to call Environment.GetFolderPath()
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…