小编Ron*_*aan的帖子

(C#)(Xamarin.Forms)自定义ReadLine(),用于用户响应的暂停代码

我正在尝试在自定义ReadLine()中创建自定义方法Console class.

我想创建一个Console应用程序AndroidiOS使用它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)

c# console.readline xamarin.forms

2
推荐指数
1
解决办法
163
查看次数

标签 统计

c# ×1

console.readline ×1

xamarin.forms ×1