An error for the illegal reference to t inside static class d.
在静态类d中非法引用t的错误。
This static class helps to make mocking a lot easier in ASP.NET MVC applications.
不过该静态类有助于开发者更加方便地在ASP.NETMVC应用程序中创建模拟对象。
Note also that it's an error to derive a static class from any class other than object.
还要注意,从任何非对象类派生静态类都是错误的。
If the nested class is a static class, a box showing a preview of the refactoring displays right away.
如果这个嵌套类是一个静态类,那么就会立即出现一个框,显示这个重构的预览。
In this way, a single static class declares the entire extended authorization policy of an EAz application.
通过这种方法,单个静态类可以声明EAz应用程序的完整扩展授权策略。
This class is a static class - it is sealed, abstract and does not have a public constructor.
此类是一个静态类。即,它既是密封的,又是抽象的,并且没有公共构造函数。
As per comments, Globals appears to be a static class, therefore it itself is not serializable.
根据评论,Globals似乎是一个静态类,因此它本身是不可序列化的。
You use a static class that has methods that run before and after the XmlObject changes, as shown in Listing 3.
我们使用一个静态类,其中包含在XmlObject更改之前和之后运行的方法,见清单3。
In our example, the identifier is stored in a static class variable so that it can be accessed from outside if necessary.
在我们的范例之中,标识符存储在静态的类变量之中,这样如有需要就可以从外边访问它了。
With singletons implemented as single instances instead of static class members, you can initialize the singleton lazily, creating it only when it is first used.
由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。
A link demand performed on a static class constructor does not protect the constructor because static constructors are called by the system, outside the application's code execution path.
对静态类构造函数执行的链接要求不会保护该构造函数,因为静态构造函数是由系统调用的,它们并不包括在应用程序的代码执行路径中。
Initialize Static Class Members with Static Constructors.
使用静态构造器初始化静态类成员。
If you want to maintain a single instance of a variable for all instances of a class, you will use static-class member variables to do it.
如果您想为一个类的所有实例维持一个变量的实例,将会用到静态类成员变量。
If you want to maintain a single instance of a variable for all instances of a class, you will use static-class member variables to do it.
如果您想为一个类的所有实例维持一个变量的实例,将会用到静态类成员变量。
应用推荐