うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-04-20から1日間の記事一覧

【C#】メソッドをオーバーライドしているかどうか判定する

using System; using System.Reflection; private static bool IsOverrideMethod(Type type, string methodName) { var method = type.GetMethod(methodName, BindingFlags.Instance | BindingFlags.NonPublic); if (method == null) return false; return m…