Beispiel #1
0
 public static void ProtobufSetup()
 {
     foreach (Type item in MengeType().EmptyIfNull())
     {
         ProtobufRuntimeTypeModelSetup.SetupForType(item);
     }
 }
Beispiel #2
0
 private static void SyncedSetupProtobuf()
 {
     Protobuf.ProtobufSetup();
     Type[] source = new Type[1]
     {
         typeof(SictZuNezSictDiferenzScritAbbild)
     };
     Type[] array = new Type[0];
     (from type in source
      select type.Assembly)?.ForEach(delegate(Assembly assembly)
     {
         ProtobufRuntimeTypeModelSetup.SetupForAssembly(assembly);
     });
     array?.ForEach(delegate(Type type)
     {
         ProtobufRuntimeTypeModelSetup.SetupForType(type);
     });
 }