# Reflection APIs question

**URL:** <https://forums.swift.org/t/reflection-apis-question/27326>\
**Category:** Using Swift\
**Tags:** reflection\
**Created:** [July 25, 2019, 7:52pm UTC](https://forums.swift.org/t/reflection-apis-question/27326 "2019-07-25T19:52:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ponyboy47](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ponyboy47/32/2605_2.png) [@Ponyboy47](https://forums.swift.org/u/Ponyboy47)\
**Post date:** [July 25, 2019, 7:52pm UTC](https://forums.swift.org/t/reflection-apis-question/27326/1 "2019-07-25T19:52:45Z")

</div>

I'm wondering if it's possible to get a type's static variables and/or type aliases through reflection? I'm using an enum to emulate a namespace and it has several static variables I would like to retrieve dynamically so I don't have to explicitly go through each one manually. They have different types so I don't think it wouldn't be easy/nice to stick them into a collection. I don't _think_ I can grab static variables through reflection today but I thought I'd ask here just to make sure.
