using System; namespace UserFunctions { // In order to see xml comments in the FastReport designer, be sure to turn on "GenerateDocumentationFile" option in the project public static class MyFunctions { /// /// Converts a specified string to uppercase. /// /// The string to convert. /// A string in uppercase. public static string MyUpperCase(string s) { return s == null ? "" : s.ToUpper(); } /// /// Returns the larger of two 32-bit signed integers. /// /// The first of two values to compare. /// The second of two values to compare. /// Parameter val1 or val2, whichever is larger. public static int MyMaximum(int val1, int val2) { return Math.Max(val1, val2); } /// /// Returns the larger of two 64-bit signed integers. /// /// The first of two values to compare. /// The second of two values to compare. /// Parameter val1 or val2, whichever is larger. public static long MyMaximum(long val1, long val2) { return Math.Max(val1, val2); } } }