问题描述
嗨。
所以我有一个第一类(clsResults)作为对象的集合,而对象类(clsResult)几乎是一个集合本身(我不能定义对象的属性,因为它们可以改变)。
So I have a first class (clsResults) that acts as a collection of objects, and the object class (clsResult) that is pretty much a collection in itself (I can't define the properties of the object as these can change).
我的问题是:我如何确保所有clsResult对象具有完全相同的键(属性)?我想在clsResults中有另一个只包含键(属性)的集合,然后检查每个clsResult对象是否有这些键,
但我不确定这是否是最佳方式。提前谢谢!
My question is: how do I ensure that all clsResult objects have the exact same keys (properties)? I'm thinking of having another collection in clsResults that only contains the keys (properties) and then checks that each clsResult object has those keys, but I'm not sure if that is the optimal way. Thank you in advance!
推荐答案
对不起......
这篇关于VBA - 收藏集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!