How to get layer name and layer structures in rhino document using C#

Dear experts,
I would like to know how to get the list of rhino layers names \ full-path \ even properties in a document using C#.
Thanks in advance,

K

One way is to use the Layers table in the doc:

{
    foreach (Rhino.DocObjects.Layer layer in RhinoDoc.ActiveDoc.Layers)
        {
            Rhino.RhinoApp.WriteLine(layer.FullPath);
        }
}

Seems to work here from grasshopper editor.