src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Get the MethodRef equivalent to this MethodDef.  If one
/// does not exist, then create it.
/// </summary>
/// <returns>MethodRef for this MethodDef</returns>
Get the MethodRef equivalent to this MethodDef.  If one
does not exist, then create it.
Get the MethodRef equivalent to this MethodDef . If one does not exist then create it .
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;
        }
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 ; }
Get the MethodRef equivalent to this MethodDef.
Get the MethodRef equivalent to this MethodDef .
MethodRef for this MethodDef
MethodRef for this MethodDef