PERWAPI.MethodDef.MakeRefOf C# (CSharp) Метод

MakeRefOf() публичный Метод

Get the MethodRef equivalent to this MethodDef. If one does not exist, then create it.
public MakeRefOf ( ) : MethodRef
Результат MethodRef
        public MethodRef MakeRefOf()
        {
            if (refOf != null) return refOf;
            ClassRef parRef = ((ClassDef)parent).MakeRefOf();
            refOf = parRef.GetMethod(name, sig.parTypes);
            if (refOf == null) {
                Type rType = sig.MakeRefRetType();
                Type[] pTypes = sig.MakeRefParTypes();
                refOf = new MethodRef(parRef, name, rType, pTypes);
                refOf.defOf = this;
                refOf.AddCallConv(this.GetCallConv());
            }
            return refOf;
        }