C# - select objects by Layer

Is the a way to select object in sub-layers of that layer too?