コード例 #1
0
ファイル: JsConfig.cs プロジェクト: artdrozdov/Booklette
 internal static int RegisterElement<T, TElement>()
 {
     var i = 0;
     i += AotConfig.RegisterSerializers<TElement>();
     AotConfig.RegisterElement<T, TElement, JsonTypeSerializer>();
     AotConfig.RegisterElement<T, TElement, JsvTypeSerializer>();
     return i;
 }
コード例 #2
0
        public static int RegisterElement <T, TElement>()
        {
            var i = 0;

            i += AotConfig.RegisterSerializers <TElement>();
            AotConfig.RegisterElement <T, TElement, JsonTypeSerializer>();
            AotConfig.RegisterElement <T, TElement, Text.Jsv.JsvTypeSerializer>();
            return(i);
        }
コード例 #3
0
 public static void RegisterElement <T, TElement>()
 {
     AotConfig.RegisterSerializers <TElement>();
     AotConfig.RegisterElement <T, TElement, Text.Json.JsonTypeSerializer>();
     AotConfig.RegisterElement <T, TElement, Text.Jsv.JsvTypeSerializer>();
 }