Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

特性:构造参数结构体 #6

Open
zccz14 opened this issue Feb 14, 2017 · 0 comments
Open

特性:构造参数结构体 #6

zccz14 opened this issue Feb 14, 2017 · 0 comments

Comments

@zccz14
Copy link
Owner

zccz14 commented Feb 14, 2017

结构体是一个值类型,不具有引用的含义,因此浅表层数据若相等则结构体相等。

使用一个指标类内部的结构体来存储参数。
对于 #5 可以简单地使用 Dictionary 来查询实例池中是否已有实例。

反正保存所有的构造参数是实现实例池的必要条件。

用一个结构体来保存看起来还整齐。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant