Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public static bool Less(IntBoxElement par1, IntBoxElement par2)
 {
     return(par1.Value < par2.Value);
 }
Exemplo n.º 4
0
 public static bool Greater(IntBoxElement par1, IntBoxElement par2)
 {
     return(par1.Value > par2.Value);
 }
Exemplo n.º 5
0
 public static bool Equal(IntBoxElement par1, IntBoxElement par2)
 {
     return(par1.Value == par2.Value);
 }