有人可以告诉我string在C#中获取a的内存地址的方法吗?例如,在:
string a = "qwer";
Run Code Online (Sandbox Code Playgroud)
我需要获取的内存地址a。
有人能告诉我如何使用C#反射找到类实现的所有接口吗?
就像找到实现特定接口的所有类一样
if(type.getInterface(typeof(IAuto)) != null)
{
console.writeline(type.name.tostring());
}
Run Code Online (Sandbox Code Playgroud)