public static bool IsMethodPrimitive (Type type) { return type.IsPrimitive || type == typeof(string) || type == typeof (DateTime) || type == typeof (Decimal); }
private static bool AllTypesArePrimitive(object[] objects) { foreach (object obj in objects) { if (obj != null && !MessageFormatter.IsMethodPrimitive(obj.GetType())) { return(false); } } return(true); }