-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathICecilSerializerFactory.cs
More file actions
20 lines (17 loc) · 850 Bytes
/
ICecilSerializerFactory.cs
File metadata and controls
20 lines (17 loc) · 850 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>
/// Gives the required generic serializer for a given type.
/// This is useful for generation of serialization assembly, when AOT is performed (all generic serializers must be available).
/// </summary>
public interface ICecilSerializerFactory
{
/// <summary>
/// Gets the serializer type from a given object type.
/// </summary>
/// <param name="objectType">Type of the object to serialize.</param>
/// <returns></returns>
TypeReference? GetSerializer(TypeReference objectType);
}