src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Get the vararg method "name(parTypes,optTypes)" for this class
/// </summary>
/// <param name="name">Method name</param>
/// <param name="parTypes">Method parameter types</param>
/// <param name="optParTypes">Optional parameter types</param>
/// <returns>Descriptor for "name(parTypes,optTypes)"</returns>
Get the vararg method "name(parTypes,optTypes)" for this class
Get the vararg method " name ( parTypes optTypes ) " for this class
public Method GetMethodDesc(string name, Type[] parTypes, Type[] optParTypes) {
            for (int i=0; i < methods.Count; i++) {
                if (((Method)methods[i]).HasNameAndSig(name,parTypes,optParTypes))
                    return (Method)methods[i];
            }
            return null;
        }
public Method GetMethodDesc ( string name , Type [ ] parTypes , Type [ ] optParTypes ) { for ( int i = 0 ; i < methods . Count ; i ++ ) { if ( ( ( Method ) methods [ i ] ) . HasNameAndSig ( name , parTypes , optParTypes ) ) return ( Method ) methods [ i ] ; } return null ; }
Get the vararg method "name(parTypes,optTypes)" for this class
Get the vararg method " name ( parTypes optTypes ) " for this class
Descriptor for "name(parTypes,optTypes)"
Descriptor for " name ( parTypes optTypes ) "
name
string
None
parTypes
Type[]
Method parameter types
Method parameter types
optParTypes
Type[]
Optional parameter types
Optional parameter types