Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ICecilSerializerFactory.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using Mono.Cecil;
4 
5 namespace SiliconStudio.AssemblyProcessor
6 {
7  /// <summary>
8  /// Gives the required generic serializer for a given type.
9  /// This is useful for generation of serialization assembly, when AOT is performed (all generic serializers must be available).
10  /// </summary>
11  public interface ICecilSerializerFactory
12  {
13  /// <summary>
14  /// Gets the serializer type from a given object type.
15  /// </summary>
16  /// <param name="objectType">Type of the object to serialize.</param>
17  /// <returns></returns>
18  TypeReference GetSerializer(TypeReference objectType);
19  }
20 }
Gives the required generic serializer for a given type. This is useful for generation of serializatio...