SaveSerialized() public static method

public static SaveSerialized ( System.Guid itemID, string sKey, string sData ) : void
itemID System.Guid
sKey string
sData string
return void
Example #1
0
 private void SaveSerialized(string sKey, string sData)
 {
     LoadGuids();
     if (filePage != null)
     {
         CMSConfigHelper.SaveSerialized(filePage.Root_ContentID, sKey, sData);
     }
 }
Example #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);
     }
 }