Attachment.cs 362 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace Spine
  3. {
  4. public abstract class Attachment
  5. {
  6. public Attachment(string name)
  7. {
  8. if (name == null)
  9. {
  10. throw new ArgumentNullException("name cannot be null.");
  11. }
  12. this.Name = name;
  13. }
  14. public string Name { get; private set; }
  15. public override string ToString()
  16. {
  17. return this.Name;
  18. }
  19. }
  20. }