本文介绍了C#上的CompilerServices.Operators等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否存在可用于C#的命名空间,因为此类来自:
I want to know if exists namespace available for C#, cause this class come from :
Microsoft.VisualBasic.CompilerServices
因为我想做这样的事情,但是在C#中:
cause I want to do something like this, but in C#:
Dim m = GetType(CompilerServices.Operators).GetMethod("LikeString")
谢谢
推荐答案
当然可以做到这一点而没有麻烦.您将必须在C#项目中引用VisualBasic程序集.
Sure it can do that without trouble. You will have to reference the VisualBasic assembly in your C# project.
var m = CompilerServices.Operators.GetType().GetMethod("LikeString");
这篇关于C#上的CompilerServices.Operators等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!