You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
593 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace IPA.Injector
  7. {
  8. [AttributeUsage(AttributeTargets.Assembly)]
  9. internal class ForceAssemblyReferenceAttribute : Attribute
  10. {
  11. public ForceAssemblyReferenceAttribute(Type forcedType)
  12. {
  13. //not sure if these two lines are required since
  14. //the type is passed to constructor as parameter,
  15. //thus effectively being used
  16. Action<Type> noop = _ => { };
  17. noop(forcedType);
  18. }
  19. }
  20. }