public List <Type> GetDynamicTypes() { List <Type> dynamicTypes = new List <Type>(); YamlFiles.Each(new { List = dynamicTypes }, (ctx, yf) => { try { ctx.List.AddRange(yf.DynamicTypes); } catch (Exception ex) { FireEvent(YamlDeserializationFailed, new YamlEventArgs { Schema = this, Files = this.Files, CurrentFile = yf, Exception = ex }); Failures.Add(new YamlDeserializationFailure(yf, ex)); } }); return(dynamicTypes); }
public void AddFiles(List <YamlFile> files) { YamlFiles.AddRange(files); }
public void AddFile(YamlFile file) { YamlFiles.Add(file); }