public bool RuntimeValidation(ref string error) { if (!TruthData.CheckResourceType <SparseTwinIndex <float> >()) { error = "In '" + Name + "' the Truth Data is not of type SparseTwinIndex<float>!"; return(false); } if (!ModelData.CheckResourceType <SparseTriIndex <float> >()) { error = "In '" + Name + "' the Model Data is not of type SparseTriIndex<float>!"; return(false); } return(true); }