如果您必须在方法界限外储存或传递查询结果,请考虑使用一般的具名结构或类别,而不使用匿名型别。
If you must store your query results or pass them outside the method boundary, consider using an ordinary named struct or class instead of an anonymous type.
范例中会使用CNG类别、具名管道传输和互动式主控台视窗,示范拦截式攻击的安全性方案。
The example USES CNG classes, a named pipes transport, and interactive console Windows to demonstrate security solutions for a man-in-the-middle attack.
包含型别成员 (例如,类别的 [属性]节点) 的个别节点都是具名区间。
The individual nodes that contain type members (for example, the Properties node for a class) are named Compartments.
当您使用物件初始设定式来建立具名型别的执行个体时,会呼叫类别的预设建构函式,接著按照您指定的顺序初始化指定的成员。
When you use an object initializer to create an instance of a named type, the default constructor for the class is called, followed by initialization of designated members in the order you specify.
您不能根据区域或未具名型别,具现化泛型或样板类别。
You cannot instantiate a generic or template class based on a local or unnamed type.
您不能根据区域或未具名型别,具现化泛型或样板类别。
You cannot instantiate a generic or template class based on a local or unnamed type.
应用推荐