fBaseXtensions.Cache.External.Objects.BountyDataCollection.SerializeToXML C# (CSharp) Method

SerializeToXML() public static method

public static SerializeToXML ( BountyDataCollection settings, string FolderPath ) : void
settings BountyDataCollection
FolderPath string
return void
        public static void SerializeToXML(BountyDataCollection settings, string FolderPath)
        {
            string FilePath = Path.Combine(FolderPath, "Cache_Bounties.xml");
            var serializer = new XmlSerializer(typeof(BountyDataCollection));
            var textWriter = new StreamWriter(FilePath);
            serializer.Serialize(textWriter, settings);
            textWriter.Close();
        }

Same methods

BountyDataCollection::SerializeToXML ( BountyDataCollection settings ) : void