private static bool IsTaskMatch( string name, string version, NamedTypeDescriptor <TDescribed> descriptor) { return(string.Equals(name, descriptor.Name, StringComparison.Ordinal) && string.Equals(version, descriptor.Version, StringComparison.Ordinal)); }
/// <summary> /// Adds the descriptor to this collection. /// </summary> /// <param name="descriptor">The descriptor to add.</param> /// <returns>True if descriptor added, false otherwise.</returns> public bool Add(NamedTypeDescriptor <TDescribed> descriptor) => _descriptors.Add(descriptor);