title: Lua / LuaInterface - How to access C# Attributes?
body: <p>I have been looking for a way so that in Lua script I can access custom attributes for a class.</p>
  
  <p>I know that I can implement a normal C# method and in that method access the Attribute using normal Reflection and then do a registerMethod on the Lua-object.</p>
  
  <p>But in this case I don't want to write a C#-method but just write a normal string with the Lua-code and there access the Attribute.</p>
  
  <p>My question is how to do it? Is the right way to do something like</p>
  
  <pre><code>require 'CLRPackage'
  import "System.Reflection"
  
  typeOfObject = type(myClrObject)
  typeOfObject.GetCustomAttribute(...)
  -- something more...
  </code></pre>