0
我不斷收到兩個「不一致可訪問性」錯誤,指出「...比方法更難以訪問......」。儘管類公衆不一致的可訪問性
我已經找到了解決這個問題的辦法,每個答案基本上都是「讓班級公開。」
我因此被卡住了,因爲班級已經公開了。
這是發生在哪裏的錯誤:
[DllImport("User32.Dll")]
public static extern bool GetClientRect(IntPtr hWnd, out RECT lpRect);
/// <summary>
/// Get the inner bounds of client window
/// </summary>
/// <param name="hWnd"></param>
/// <returns></returns>
public static RECT GetClientRect(IntPtr hWnd)
{
RECT result;
GetClientRect(hWnd, out result);
return result;
}
閱讀整個錯誤消息。這可能是抱怨'RECT'。 – SLaks
你是對的。我將它改爲矩形,現在沒問題。 – Jillinger