public static bool SetJArray(this SAMSchema sAMSchema, Element element, JArray jArray) { if (sAMSchema == null || element == null || jArray == null) { return(false); } string fieldName = sAMSchema.FieldName; if (string.IsNullOrWhiteSpace(fieldName)) { return(false); } return(SetJArray(sAMSchema.GetSchema(), element, jArray, fieldName)); }
public static bool SetJObject(this SAMSchema sAMSchema, Element element, JObject jObject) { if (sAMSchema == null || element == null || jObject == null) { return(false); } string fieldName = sAMSchema.FieldName; if (string.IsNullOrWhiteSpace(fieldName)) { return(false); } return(SetJObject(sAMSchema.GetSchema(), element, jObject, fieldName)); }