/// <summary> /// Looks the CustomPaneAttributes /// </summary> /// <param name="type">the type you want looking for the attribute</param> /// <returns>CustomPaneAttribute[] instance</returns> public static CustomPaneAttribute[] GetCustomPaneAttributes(Type type) { object[] array = type.GetCustomAttributes(typeof(CustomPaneAttribute), false); if (array.Length > 0) { CustomPaneAttribute[] result = new CustomPaneAttribute[array.Length]; for (int i = 0; i < array.Length; i++) { result[i] = array[i] as CustomPaneAttribute; } return(result); } else { return(new CustomPaneAttribute[0]); } }
/// <summary> /// Looks the CustomPaneAttributes /// </summary> /// <param name="type">the type you want looking for the attribute</param> /// <returns>CustomPaneAttribute[] instance</returns> public static CustomPaneAttribute[] GetCustomPaneAttributes(Type type) { object[] array = type.GetCustomAttributes(typeof(CustomPaneAttribute), false); if (array.Length > 0) { CustomPaneAttribute[] result = new CustomPaneAttribute[array.Length]; for (int i = 0; i < array.Length; i++) result[i] = array[i] as CustomPaneAttribute; return result; } else { return new CustomPaneAttribute[0]; } }