PersistenceKey.cs 354 B

12345678910111213141516
  1. namespace XGame.Framework.Persistence
  2. {
  3. public sealed class PersistenceKey
  4. {
  5. public string Key { get; }
  6. public PersistenceKey(string key)
  7. {
  8. Key = key;
  9. }
  10. public static implicit operator string(PersistenceKey persistenceKey)
  11. {
  12. return persistenceKey.Key;
  13. }
  14. }
  15. }