public HoistedStoreyClass GetGenericStorey () { DeclSpace storey = this; while (storey != null && storey.CurrentTypeParameters == null) storey = storey.Parent; return storey as HoistedStoreyClass; } }