public List <PropertySheet> GetPropSheets(Type confClass) { var psCol = new List <PropertySheet>(); foreach (var ps in _symbolTable.Values) { if (ConfigurationManagerUtils.IsDerivedClass(ps.GetConfigurableClass(), confClass)) { psCol.Add(ps); } } return(psCol); }
/** * /// Gets all instances that are of the given type. * * /// @param type the desired type of instance * /// @return the set of all instances */ public List <String> GetInstanceNames(Type type) { var instanceNames = new List <String>(); foreach (var ps in _symbolTable.Values) { if (!ps.IsInstanciated()) { continue; } if (ConfigurationManagerUtils.IsDerivedClass(ps.GetConfigurableClass(), type)) { instanceNames.Add(ps.InstanceName); } } return(instanceNames); }