FactoryAttribute.cs 403 B

1234567891011121314151617
  1. using System;
  2. namespace Model
  3. {
  4. [AttributeUsage(AttributeTargets.Class)]
  5. public class FactoryAttribute : Attribute
  6. {
  7. public Type ClassType { get; private set; }
  8. public int Type { get; private set; }
  9. public FactoryAttribute(Type classType, int type)
  10. {
  11. this.ClassType = classType;
  12. this.Type = type;
  13. }
  14. }
  15. }