public static 五行 我克(this 五行 行) { switch (行) { case 金 我: return(我.我克); case 水 我: return(我.我克); case 木 我: return(我.我克); case 火 我: return(我.我克); case 土 我: return(我.我克); default: throw new Exception($"未找到任何匹配,当前输入[{行.名称}]"); } }
public static bool 的兄弟是(this 五行 主, 五行 客) => 主.我() == 客;
public static bool 的妻妾是(this 五行 主, 五行 客) => 主.我克() == 客;
public static bool 的官鬼是(this 五行 主, 五行 客) => 主.克我() == 客;
public static bool 的子孙是(this 五行 主, 五行 客) => 主.我生() == 客;
public static bool 的父母是(this 五行 主, 五行 客) => 主.生我() == 客;