internal short AddMethodRef(string className, string methodName, string methodType)
{
FieldOrMethodRef @ref = new FieldOrMethodRef(className, methodName, methodType);
int theIndex = itsMethodRefHash.Get(@ref, -1);
if (theIndex == -1)
{
short ntIndex = AddNameAndType(methodName, methodType);
short classIndex = AddClass(className);
Ensure(5);
itsPool[itsTop++] = CONSTANT_Methodref;
itsTop = ClassFileWriter.PutInt16(classIndex, itsPool, itsTop);
itsTop = ClassFileWriter.PutInt16(ntIndex, itsPool, itsTop);
theIndex = itsTopIndex++;
itsMethodRefHash.Put(@ref, theIndex);
}
SetConstantData(theIndex, @ref);
itsPoolTypes.Put(theIndex, CONSTANT_Methodref);
return (short)theIndex;
}