public HarmonyPatch(string propertyName, PropertyMethod type) { info.methodName = propertyName; info.methodType = type == PropertyMethod.Getter ? MethodType.Getter : MethodType.Setter; }
public HarmonyPatch(string propertyName, PropertyMethod type) : base(propertyName, (HarmonyLib.MethodType)type) { }
public HarmonyPatch(string propertyName, PropertyMethod type) { var prefix = type == PropertyMethod.Getter ? "get_" : "set_"; info.methodName = prefix + propertyName; }
public HarmonyPatch(string propertyName, PropertyMethod type) { }