AFAIK: You have to use ARX (C++) to create it. It can't be done in c#
It might be beneficial if you went into more detail e.g. what type of "object" are you hoping to create, what you need it to do, why you need it done that way, etc. There may be other options.
Access a broad range of knowledge to help get the most out of your products and services.