Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

ResultSetResultUnit

Represents a collection of prediction results with generic type support 表示具有泛型类型支持的预测结果集合

Definition

命名空间: DeploySharp.Data
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public class ResultSet<ResultUnit> : IEnumerable<ResultUnit>, 
	IEnumerable
where ResultUnit : Result
Inheritance
Object    ResultSetResultUnit
Implements
IEnumerableResultUnit, IEnumerable

类型参数

ResultUnit
The type of prediction result, must inherit from Result 预测结果的类型,必须继承自 Result

备注

This class provides enumeration capabilities and implements indexer access to the prediction collection. 此类提供枚举能力并实现对预测集合的索引器访问。

The prediction results can be updated in batch operations. 预测结果可以通过批量操作进行更新。

构造函数

ResultSetResultUnit Initializes a new instance of the ResultSet class with specified predictions 使用指定的预测结果初始化 ResultSet 类的新实例

属性

Count Gets the number of prediction results in the collection 获取集合中预测结果的数量
Item Gets the prediction result at the specified index 获取指定索引处的预测结果
Predictions Gets or sets the array of prediction results 获取或设置预测结果数组

方法

EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
GetEnumerator Returns an enumerator that iterates through the prediction collection 返回一个遍历预测集合的枚举器
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
ToString Returns a string that represents the current result set 返回表示当前结果集的字符串
(重写 ObjectToString)
UpdateCategory Updates categories for all prediction results in the collection 为集合中的所有预测结果更新类别

参见