-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathICecilSerializerDependency.cs
More file actions
20 lines (17 loc) · 893 Bytes
/
ICecilSerializerDependency.cs
File metadata and controls
20 lines (17 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using Mono.Cecil;
namespace Stride.Core.AssemblyProcessor;
/// <summary>
/// Enumerates required subtypes the given serializer will use internally.
/// This is useful for generation of serialization assembly, when AOT is performed (all generic serializers must be available).
/// </summary>
public interface ICecilSerializerDependency
{
/// <summary>
/// Enumerates the types this serializer requires.
/// </summary>
/// <param name="serializerType">Type of the serializer.</param>
/// <returns></returns>
IEnumerable<TypeReference> EnumerateSubTypesFromSerializer(TypeReference serializerType);
}