C#: Add type parameter in/out

This commit is contained in:
Tamas Vajk
2020-10-02 10:52:13 +02:00
parent 33672a4058
commit f2e6b42aa4

View File

@@ -99,7 +99,7 @@ namespace Semmle.Extraction
/// A factory for creating cached entities.
/// </summary>
/// <typeparam name="Initializer">The type of the initializer.</typeparam>
public interface ICachedEntityFactory<Initializer, Entity> where Entity : ICachedEntity
public interface ICachedEntityFactory<in Initializer, out Entity> where Entity : ICachedEntity
{
/// <summary>
/// Initializes the entity, but does not generate any trap code.