Create Layer Hierarchy in C#

Thanks for your reply, @siemen’s line worked real well.