Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 protected bool Equals(IdfObject other)
 {
     return(string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase));
 }