예제 #1
0
        public static IntBoxElement Sum(IntBoxElement par1, IntBoxElement par2)
        {
            IntBoxElement element = new IntBoxElement(null, "IntBox", "IntBox");

            element.Value = par1.Value + par2.Value;
            return(element);
        }
예제 #2
0
        /// <summary>
        /// Returns the length of the node value.
        /// </summary>
        /// <param name="node1">The first value</param>
        /// <param name="node2">The second value</param>
        /// <returns>The sum of the length of the nodes value.</returns>
        public static IntBoxElement Lenght(StringBoxElement par)
        {
            IntBoxElement element = new IntBoxElement(null, "IntBox", "IntBox");

            element.Value = par.Value.Length;
            return(element);
        }
예제 #3
0
 public static bool Less(IntBoxElement par1, IntBoxElement par2)
 {
     return(par1.Value < par2.Value);
 }
예제 #4
0
 public static bool Greater(IntBoxElement par1, IntBoxElement par2)
 {
     return(par1.Value > par2.Value);
 }
예제 #5
0
 public static bool Equal(IntBoxElement par1, IntBoxElement par2)
 {
     return(par1.Value == par2.Value);
 }