示例#1
0
    public void OnBtnClick()
    {
        StringBuilder sb = new StringBuilder();

        sb.AppendFormat("pointer size:{0}\r\n", System.IntPtr.Size);
        sb.AppendFormat("operation name:{0}\r\n", SystemInfo.operatingSystem);
        sb.AppendFormat("processorType:{0}\r\n", SystemInfo.processorType);
        sb.AppendLine();
        txtInfo.text = sb.ToString();

        // 测试实例方法替换
        InstanceMethodTest InstanceTest = new InstanceMethodTest();

        sb.Length = 0;
        string info = InstanceTest.Test();

        sb.AppendLine(info);
        txtInfo.text += sb.ToString();

        PinnedLog.RemoveMsg(_msgId);
        PinnedLog.ClearAll();
    }
示例#2
0
 public void OnBtnClick()
 {
     PinnedLog.RemoveMsg(_msgId);
     PinnedLog.ClearAll();
 }