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); }
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); }