public static void AddDestroyMethod(System.Type attrType, AttributeMethodDelegate method) { Assert.IsNotNull(method); Assert.IsFalse(_destroyMethods.ContainsKey(attrType)); _destroyMethods.Add(attrType, method); }
public static void AddDestroyMethod <T>(AttributeMethodDelegate method) where T : ISubComponentAttribute => AddDestroyMethod(typeof(T), method);