public static List <(IdfParser.ObjectContext objectContext, IdfObject idfObject)> BoundObjects( this Dictionary <string, List <IdfParser.ObjectContext> > data) { return(data.SelectMany(pair => { IdfObject idfObject = IdfObjectList.GetIdfObject(pair.Key); return pair.Value.Select(context => (context, idfObject)); }).ToList()); }
protected bool Equals(IdfObject other) { return(string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase)); }