/// <summary>関数を登録します。</summary> /// <param name="signature">関数のフルシグネチャ</param> /// <param name="method">実際の関数</param> public void AdvertiseMethod(string signature, QiObjectMethod method) { var qiMethod = new QiMethod(method); uint id = QiApiObjectBuilder.AdvertiseMethod( this, signature, qiMethod.UnmanagedMethod, IntPtr.Zero ); _advertisedMethods[id] = qiMethod; }