src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Create the FieldRef equivalent to this FieldDef.  If one does not
/// exist then create it.
/// </summary>
/// <returns>FieldRef for this FieldDef</returns>
Create the FieldRef equivalent to this FieldDef.  If one does not
exist then create it.
Create the FieldRef equivalent to this FieldDef . If one does not exist then create it .
public FieldRef MakeRefOf() {
            if (refOf != null) return refOf;
            ClassRef parRef = ((ClassDef)parent).MakeRefOf();
            refOf = parRef.GetField(name);
            if (refOf == null) {
                Type refType;
                if (type is ClassDef) {
                    refType = ((ClassDef)type).MakeRefOf();
                } else {
                    refType = type;
                }
                refOf = new FieldRef(parRef,name,refType);
                refOf.defOf = this;
            }
            return refOf;
        }
public FieldRef MakeRefOf ( ) { if ( refOf != null ) return refOf ; ClassRef parRef = ( ( ClassDef ) parent ) . MakeRefOf ( ) ; refOf = parRef . GetField ( name ) ; if ( refOf == null ) { Type refType ; if ( type is ClassDef ) { refType = ( ( ClassDef ) type ) . MakeRefOf ( ) ; } else { refType = type ; } refOf = new FieldRef ( parRef , name , refType ) ; refOf . defOf = this ; } return refOf ; }
Create the FieldRef equivalent to this FieldDef.
Create the FieldRef equivalent to this FieldDef .
FieldRef for this FieldDef
FieldRef for this FieldDef