protected string GetClassName() { var autoWindowText = new AutoCharPtr(255); NativeMethods.GetClassNameW(Handle, autoWindowText, autoWindowText.Length); return(autoWindowText.Value); }
public void TestMethod1() { using var pstr = new AutoCharPtr(10); WriteString(pstr); Assert.Equal("string...", pstr.Value); }