从 dll c# 调用方法
Call a method from dll c#
我有一个 dll,其中包含像
这样的方法
public static void newSession(string email, string pass)
public static dynamic checkData(int imei, string name)
dll 已添加到项目和 "using"。
首先,在程序开始时,我应该调用"newSession"。在它之后 - "checkData" 用于登录按钮。
但我不明白如何以及在哪里完成。有人可以帮我做吗?
P.S。这是一个 Windows Phone 应用程序
像这样
using yournamespace;
class MyClass2
{
void MyMethod()
{
MyClass.newSession("Whatever", "Whatever");
MyClass.checkData(0, "Whatever");
}
}
我有一个 dll,其中包含像
这样的方法public static void newSession(string email, string pass)
public static dynamic checkData(int imei, string name)
dll 已添加到项目和 "using"。 首先,在程序开始时,我应该调用"newSession"。在它之后 - "checkData" 用于登录按钮。 但我不明白如何以及在哪里完成。有人可以帮我做吗?
P.S。这是一个 Windows Phone 应用程序
像这样
using yournamespace;
class MyClass2
{
void MyMethod()
{
MyClass.newSession("Whatever", "Whatever");
MyClass.checkData(0, "Whatever");
}
}