SaveSerialized() public static method

public static SaveSerialized ( System.Guid itemID, string sKey, string sData ) : void
itemID System.Guid
sKey string
sData string
return void
Esempio n. 1
0
 private void SaveSerialized(string sKey, string sData)
 {
     LoadGuids();
     if (filePage != null)
     {
         CMSConfigHelper.SaveSerialized(filePage.Root_ContentID, sKey, sData);
     }
 }
Esempio n. 2
0
 public static void SaveSerializedDataExport <T>(Guid guidKey, T theData)
 {
     if (theData == null)
     {
         CMSConfigHelper.ClearSerialized(guidKey, keyPageImport);
     }
     else
     {
         XmlSerializer xmlSerializer = new XmlSerializer(typeof(T));
         string        sXML          = String.Empty;
         using (StringWriter stringWriter = new StringWriter()) {
             xmlSerializer.Serialize(stringWriter, theData);
             sXML = stringWriter.ToString();
         }
         CMSConfigHelper.SaveSerialized(guidKey, keyPageImport, sXML);
     }
 }