如何检查类型的通用对象的方法吗?
原因是大多数程序员都不愿意卷入检查类型的麻烦。
This is because checking for these types is, frankly, more trouble than most programmers like to engage in.
如今,编译器会检查类型安全性,跟踪类型信息。
These days, compiler will take care of type safety and will track type information.
在运行时检查类型或对象实例的元数据的能力是一个非常强大的功能。
The ability to examine the metadata of a type or object instance at run time is a powerful feature.
视图是一个具有额外属性的DerivedTable,比如查询表达式和检查类型。
A view is a DerivedTable with extra properties, such as query expression and check type.
皮肤科医师会检查类型的皮肤和你的痤疮疤痕,他将在此基础推荐某一方法去除痤疮疤痕。
The dermatologist will check the type of your skin and on the acne scar and on that basis he would recommend a particular method of acne scar removal.
事实上,需要遍历所有子节点,检查类型为Text的节点,并整理它们的值,直到得到完整的值为止。
In fact, we need to traverse all of the children, checking for nodes of type Text, and collating their values until we have the complete value.
当检查类型定义时,编译器需要知道哪个集合包含类型定义信息,以便把它加到结果文件里。
When checking for a type '; s definition, the compiler must know which assembly contains the type so that the assembly information and the type information can be emitted into the resulting file.
如果可映射,则Windows结构可以映射到特定的Linux结构(需要仔细检查类型、参数、返回代码等)。
If mappable, the Windows construct can be mapped to the specified Linux construct (s) by closely examining the types, parameters, return codes, and such.
虽然 instanceof功能提供了一种检查类型的好方法,但您还可以通过在参数列表中使用类型提示,来将对象类型检查滚动到方法签名自身中。
The instanceof function provides a good way of checking type, but you can also roll object type checking into the method signature itself by using type hints in the argument list.
在接待员收集到客房查询信息后,下一步往往是检查所需类型的房间是否可入住。
After the receptionist gathers room-query data, the next step is always to check the availability of the required type of room.
检查他们使用的句子类型,注意他们的隐喻,并专注于你认为可以写出很酷的续篇的故事。
Examine types of sentences they use, pay attention to their metaphors, and focus on stories you feel you could write a pretty cool sequel to.
但是如果您不知道所有的数据自何处而来,那么,只是知道如何检查数据类型是不够的。
But knowing how to check data types isn't enough if you don't know where all of your data comes from.
他关注的领域还有通过语义形式和类型检查对安全性协议进行验证。
He is also concerned with the verification of security protocols through semantic formalisms and type checking.
但是,如果使用PHPV5 的话,可以将对象类型检查构建到类或方法声明中。
With PHP V5, however, you can build object type checking right into the class or method declaration.
我们应该检查异常类型,但此处我们将假定它意味着没有找到相应结果。
We should check the exception type, but here we'll just assume it means that no results were found.
之后,元数据功能可以检查注释实例的注释类型。
The metadata facility can then check annotation instances against the annotation types.
处理器在提交数据进行处理之前检查数据类型和约束。
The processor checks data types and constraints before the data is submitted for processing.
这个简单迁移意味着在接待员收集到客房查询信息后,下一步往往是检查所需类型的房间是否可入住。
This simple transition means that after the receptionist gathers room-query data, the next step is always to check the availability of the required type of room.
额外的数据类型检查代码是不必要的。
在组装时就需要进行选择,是覆盖常用类型检查,还是在不同类型的属性和行为之间创建连接。
You now have the choice, at assembly time, to override the usual type checking and create a wire between a property and an action of different types.
举个例子,比方说,只需要检查某种类型的约束,例如结构性约束。
An example is that only a certain type of constraint needs to be checked such as structural constraints.
当匹配模式或者进行值比较时,需要检查数据类型。
Attempting to check the data type when matching a pattern or in a value comparison.
该脚本检查最常见的问题类型。
很明显,类型检查并不足以证明代码的正确性。
It's clear that type checking isn't enough to prove that your code is correct.
但是对于MIME类型,您必须检查绑定来决定实参的类型。
But for MIME types you must inspect the binding to determine the real parameter types.
编译器的类型检查规则与API签名结合确定什么是合法输入。
The compiler's type-checking rules coupled with the API's signature govern what constitutes legitimate input.
当用 ""指定为内容类型时,编校服务器会检查文档数据并识别类型。
When "" is specified as the content type, the redaction server examines the document data and identifies the type.
现在,如果在运行时作为基类型传递派生的子类,那么无法通过检查接口参数类型识别出子类。
When you now try to pass a derived subclass in terms of a base type at run time, the subclasses will not be recognized by simply introspecting the interface parameter types.
当请求到达,IIS检查资源类型并调用到asp.netISAPI扩展。
When the request arrives, IIS examines the resource type and calls into the ASP.NET ISAPI extension.
应用推荐