gpt4 book ai didi

c# - 矩形,它在哪里?

转载 作者:太空宇宙 更新时间:2023-11-03 18:03:55 24 4
gpt4 key购买 nike

这让我发疯,然后创建新的控制台应用程序项目

// adding it as reference of course
using System.Windows;

// somewhere in method
var rect = new Rect(1, 2, 3, 4); // no Rect

The type or namespace name 'Rect' could not be found (are you missing a using directive or an assembly reference?)

Rect 会发生什么? ?

最佳答案

您应该添加 WindowsBase.dll 作为对您项目的引用。

关于c# - 矩形,它在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40153058/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com