还原一些readyonly项
This commit is contained in:
parent
f705b947c3
commit
e5e7beb52c
@ -6,6 +6,9 @@ public struct MsgBool
|
|||||||
public string ErrorMsg;
|
public string ErrorMsg;
|
||||||
public bool Value;
|
public bool Value;
|
||||||
|
|
||||||
|
//low C# readonly
|
||||||
|
//public override readonly string ToString()
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
if (Value)
|
if (Value)
|
||||||
@ -33,6 +36,7 @@ public struct MsgBool
|
|||||||
return msgBool.Value;
|
return msgBool.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//low C#
|
||||||
//public static implicit operator (bool, string)(MsgBool msgBool)
|
//public static implicit operator (bool, string)(MsgBool msgBool)
|
||||||
//{
|
//{
|
||||||
// return (msgBool.Value, msgBool.ErrorMsg);
|
// return (msgBool.Value, msgBool.ErrorMsg);
|
||||||
|
@ -137,6 +137,8 @@ namespace AxibugEmuOnline.Client
|
|||||||
m_keyListener = Controller.GetKey(m_hostController.ControllerIndex, m_buttonType);
|
m_keyListener = Controller.GetKey(m_hostController.ControllerIndex, m_buttonType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//low C# readonly
|
||||||
|
//public readonly struct KeyListener
|
||||||
|
|
||||||
public struct KeyListener
|
public struct KeyListener
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user