patrick31415 / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

Add the ability to enumerate MetaType's members #313

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MetaType allows adding fields, and retriving their ValueMember objects back via 
indexers, but there is no way to enumerate the fields.

http://stackoverflow.com/questions/12026469/how-do-you-enumerate-metatypes-membe
rs

Original issue reported on code.google.com by allon.guralnek on 19 Aug 2012 at 1:41

GoogleCodeExporter commented 9 years ago
Added in r581

Original comment by marc.gravell on 20 Aug 2012 at 6:30

GoogleCodeExporter commented 9 years ago
Great! But now there are two methods: GetSubtypes and GetSubTypes.

Original comment by allon.guralnek on 20 Aug 2012 at 7:50

GoogleCodeExporter commented 9 years ago
Are there? If so, that was a stupid oversight by me and will be quietly fixed 
next commit...

Original comment by marc.gravell on 20 Aug 2012 at 8:00

GoogleCodeExporter commented 9 years ago
Yes, I've removed GetSubTypes, but added the guaranteed order into GetSubtypes. 
If that makes sense!

Original comment by marc.gravell on 20 Aug 2012 at 8:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fantastic!

Original comment by allon.guralnek on 20 Aug 2012 at 8:05