Search code examples
c#methodsdllwindows-phone

Call a method from dll c#


I have a dll which contains methods like

public static void newSession(string email, string pass)
public static dynamic checkData(int imei, string name)

The dll alredy added to project and to "using". First, at the beginning of program, I should to call "newSession". And after it - "checkData" for the Login button. But I don't understand how and where it could be done. Can someone help me do it?

P.S. It is a Windows Phone application


Solution

  • like this

    using yournamespace;
      class MyClass2
        {
    
            void MyMethod()
            {
                MyClass.newSession("Whatever", "Whatever");
                MyClass.checkData(0, "Whatever");
    
            }
        }