AFAIK: You have to use ARX (C++) to create it. It can't be done in c#
“We don’t have a snowball’s chance in a blast furnace of surviving this attack unless every one of our units gets into the fight right now!”
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.
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.