OptionDefinition.cs 935 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using SRF.Helpers;
  3. namespace SRDebugger.Internal
  4. {
  5. public class OptionDefinition
  6. {
  7. private OptionDefinition(string name, string category, int sortPriority)
  8. {
  9. this.Name = name;
  10. this.Category = category;
  11. this.SortPriority = sortPriority;
  12. }
  13. public OptionDefinition(string name, string category, int sortPriority, MethodReference method) : this(name, category, sortPriority)
  14. {
  15. this.Method = method;
  16. }
  17. public OptionDefinition(string name, string category, int sortPriority, SRF.Helpers.PropertyReference property) : this(name, category, sortPriority)
  18. {
  19. this.Property = property;
  20. }
  21. public string Name { get; private set; }
  22. public string Category { get; private set; }
  23. public int SortPriority { get; private set; }
  24. public MethodReference Method { get; private set; }
  25. public SRF.Helpers.PropertyReference Property { get; private set; }
  26. }
  27. }