/// <summary> /// Retrieve analysis of a specific part definition given its (attributed) /// implementation type. /// </summary> /// <param name="attributedPartType">The implementation type of the part definition.</param> /// <returns>Analysis of the part definition.</returns> /// <remarks>The part must be a member of the catalog being analyzed.</remarks> public PartDefinitionInfo GetPartDefinitionInfo(Type attributedPartType) { return(PartDefinitions .Where(pd => ReflectionModelServices.GetPartType(pd.PartDefinition).Value == attributedPartType) .SingleOrDefault()); }
/// <summary> /// Retrieve analysis of a specific part definition given the name of its /// (attributed) implementation type. /// </summary> /// <param name="typeName">The FullName of the implementation type of the part definition.</param> /// <returns>Analysis of the part definition.</returns> /// <remarks>The part must be a member of the catalog being analyzed.</remarks> public PartDefinitionInfo GetPartDefinitionInfo(string typeName) { return(PartDefinitions .Where(pd => ReflectionModelServices.GetPartType(pd.PartDefinition).Value.FullName == typeName) .SingleOrDefault()); }