❔ different variable type depending on condition of IF statement
Hi there, how would I go about having a different type on a variable with the same name, for later use? This is required for use in my code later on within the Autodesk RevitAPI
in my helpers class:
7 Replies
use the common type,
ISelectionFilter
if selection works with that interface, it will work
if it works via overloads, you can'tUnless I misunderstood what you meant for me to do..?
kinda
assign to the variable above
you're declaring new ones with the same name
Ah Yes I see, perfect thank you!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.