我正在尝试在自定义ReadLine()中创建自定义方法Console class.
我想创建一个Console应用程序Android并iOS使用它Xamarin.Forms.
这是我的Console类:
public class DHConsole
{
protected static Entry inEntry;
protected static Label outLabel;
protected static bool write = false;
public static bool completed = false;
/// <summary>
/// Gets the in output.
/// </summary>
/// <param name="edit">Edit.</param>
/// <param name="etr">Etr.</param>
public static void GetInOutputX(Label oLabel, Entry iEntry)
{
outLabel = oLabel; // Xamarin.Forms.Label
inEntry = iEntry; // Xamarin.Froms.Entry
}
/// <summary>
/// Write the specified …Run Code Online (Sandbox Code Playgroud)