pyrochild Posted April 24, 2007 Share Posted April 24, 2007 Is it possible to save an effect token to disk and load it again later? Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 24, 2007 Share Posted April 24, 2007 If you mark it as [serializable] and follow all the regular .NET rules regarding serialization, why not? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
pyrochild Posted April 24, 2007 Author Share Posted April 24, 2007 Well that's the problem. The only tokens that seemed to be marked [serializable] are mine... And that's only because I've developed the habit of doing that to every class in my DLL's jsut in case someone else wants to do that... Is there a way to first cast an EffectConfigToken to the appropriate effectToken.GetType() and then enumerate through each public property and variable in that and save those? Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
pyrochild Posted April 26, 2007 Author Share Posted April 26, 2007 AHA! figured it out. im so proud of myself. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.