Exemple #1
0
 public static void Serialize(IPackageRepository obj, Stream stream)
 {
     if (obj is DirectoryPackageRepository)
     {
         WaldiSerializerInternal.Serialize(obj, typeof(DirectoryPackageRepository), typeof(DirectoryPackageRepositoryDto), stream);
     }
     else if (obj is MultiPackageRepository)
     {
         WaldiSerializerInternal.Serialize(obj, typeof(MultiPackageRepository), typeof(MultiPackageRepositoryDto), stream);
     }
     throw new ArgumentException("Type is not supported for serialization.", "obj");
 }
Exemple #2
0
 public static void Serialize(IPackage obj, Stream stream)
 {
     WaldiSerializerInternal.Serialize(obj, typeof(IPackage), typeof(PackageDto), stream);
 }
Exemple #3
0
 public static string Serialize(IPackage obj)
 {
     return(WaldiSerializerInternal.Serialize(obj, typeof(IPackage), typeof(PackageDto)));
 }
Exemple #4
0
 public static void Serialize(Feature obj, Stream stream)
 {
     WaldiSerializerInternal.Serialize(obj, typeof(Feature), typeof(FeatureDto), stream);
 }
Exemple #5
0
 public static string Serialize(Feature obj)
 {
     return(WaldiSerializerInternal.Serialize(obj, typeof(Feature), typeof(FeatureDto)));
 }
Exemple #6
0
 public static void Serialize(object obj, Stream stream, Type objtype, Type serobjtype)
 {
     WaldiSerializerInternal.Serialize(obj, objtype, serobjtype, stream);
 }
Exemple #7
0
 public static string Serialize(object obj, Type objtype, Type serobjtype)
 {
     return(WaldiSerializerInternal.Serialize(obj, objtype, serobjtype));
 }