Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 /// <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);