I am trying to figure out how this is possible (if it is at all). Code looks basically like this:
public class MyClass
{
public Method1()
{
List<string> mylist = new List<string>();
mylist. /*how can I call Method2?*/
}
public Method2()
{
/*automation code for changing sequence of the UI objects
(action)*/
}
}
I am able to use built-in methods like Sort(), Add() all of them after
using namespace System;
using namespace System.Collections;
using namespace System.Collections.Generic;
and so on, but I was wondering if I have to put Method2() inside another class, import it as a namespace and then use it on the object mylist inside Method1().