我目前正在使用"classname."访问其他类中的方法,但是我读到有关使用静态指令的信息,并以id尝试一下,但是有一点问题。
我已经添加了名字空间"using static System."class name"但是它不允许我使用指定类中的方法,只是抛出一个错误。有人可以帮忙吗?谢谢
我已经添加了名字空间"using static System."class name"但是它不允许我使用指定类中的方法,只是抛出一个错误。有人可以帮忙吗?谢谢
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using static System.User; // this here is throwing an error and wont allow me to use a static Dictionary
Last edited: