예제 #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));
 }
예제 #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);