public static SDK_DescriptionAttribute[] GetDescriptions(Type type) { return(VRTK_SharedMethods.GetTypeCustomAttributes(type, typeof(SDK_DescriptionAttribute), false) .Cast <SDK_DescriptionAttribute>() .OrderBy(attribute => attribute.index) .ToArray()); }