如果是的话,我们就通过创建一个新的bug实例报告一个缺陷,指定bug的类型(我们将在后面详细讨论)和其优先级。
If it is, we report a bug by creating a new bug instance, specifying the type of bug (which we'll discuss in more detail later) and its priority.
创建一个新的Hashtable实例时,必须传递类型参数以指定Key和Value的类型。
When we create a new instance of a Hashtable, we have to pass type arguments to specify the types of Key and Value.
容器看到构造函数需要一个IAccountRepository和一个ILogger实例,因此它创建了那些对象(使用先前指定的特定类型)并通过构造函数传递给AccountTransfer实例。
The container sees that the constructor requires an IAccountRepository and an ILogger, so it creates those (using the concrete types previously specified) and passes them to the constructor.
与类指定一个创建对象的模版很相像,注释类型指定创建注释实例的模版。
Annotation types specify a template to create annotation instances, much the same way classes specify a template to create objects.
创建指定类型的实例并将其添加到已命名实例的集合中。
Creates an instance of the specified type and adds it to a collection of named instances.
创建指定类型的新实例。
创建在指定程序集文件中定义的指定类型的新实例。
Creates a new instance of a specified type defined in the specified assembly file.
使用命名的程序集和默认构造函数,来创建其名称在指定的远程域中指定的类型的实例。
Creates an instance of the type whose name is specified, using the named assembly and the constructor that best matches the specified parameters.
创建在指定程序集中定义的指定类型的新实例。
Creates a new instance of the specified type defined in the specified assembly.
根据可在其中使用已授权实例的上下文,创建指定类型的实例。
Creates an instance of the specified type, given a context in which you can use the licensed instance.
使用指定的程序集文件和与指定参数匹配程度最高的构造函数来创建指定名称的类型的实例。
Creates an instance of the type whose name is specified in the specified remote domain, using the named assembly file and the constructor that best matches the specified parameters.
使用指定的程序集文件和与指定参数匹配程度最高的构造函数来创建指定名称的类型的实例。
Creates an instance of the type whose name is specified in the specified remote domain, using the named assembly file and the constructor that best matches the specified parameters.
应用推荐