public static OutputParameterAttribute[] GetOutputParameters(string format) { Type type = GetSolutionWriterImplementation(format); if (type != null) { object[] outputParameterAttributes = type.GetCustomAttributes(typeof(OutputParameterAttribute), true); OutputParameterAttribute[] outputParameters = new OutputParameterAttribute[outputParameterAttributes.Length]; for (int i = 0; i < outputParameterAttributes.Length; ++i) { outputParameters[i] = outputParameterAttributes[i] as OutputParameterAttribute; } return outputParameters; } return new OutputParameterAttribute[0]; }
public static OutputParameterAttribute[] GetOutputParameters(string format) { Type type = GetSolutionWriterImplementation(format); if (type != null) { object[] outputParameterAttributes = type.GetCustomAttributes(typeof(OutputParameterAttribute), true); OutputParameterAttribute[] outputParameters = new OutputParameterAttribute[outputParameterAttributes.Length]; for (int i = 0; i < outputParameterAttributes.Length; ++i) { outputParameters[i] = outputParameterAttributes[i] as OutputParameterAttribute; } return(outputParameters); } return(new OutputParameterAttribute[0]); }