Adding metadata to Listings/Mappings #1153
              
                Unanswered
              
          
                  
                    
                      rohan-datar
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking for a method of adding metadata to Listings so that I can pull out certain members in some situations, but otherwise treat all the members of the Listing the same, I thought the way to do that was with annotations, like this
and then use reflection to check the members when I needed to, but just treat it like a regular listing otherwise.
But this results in a syntax error. Is there a way to make this work? Is there anther method to achieve what I need here?
Beta Was this translation helpful? Give feedback.
All reactions