예제 #1
0
 public static object Substring(object x, object y)
 {
     if (IsType.String(x) && IsType.AnyInt(y))
     {
         return(Strings.Substring((string)x, Integers.ToInteger(y)));
     }
     return(null);
 }
예제 #2
0
 public static object AddYears(object x, object y)
 {
     if (!IsType.AnyInt(y))
     {
         return(null);
     }
     if (IsType.DateTime(x))
     {
         return(((DateTime)x).AddYearsSafe(Integers.ToInteger(y)));
     }
     return(null);
 }