private static ConstructorInfo FindConstructor(String className, Type[] parameterTypes) { TypographyUtils.TypographyMethodSignature tc = new TypographyUtils.TypographyMethodSignature(className, parameterTypes ); ConstructorInfo c = (ConstructorInfo)cachedMethods.Get(tc); if (c == null) { c = FindClass(className).GetConstructor(parameterTypes); cachedMethods.Put(tc, c); } return(c); }
private static MethodInfo FindMethod(String className, String methodName, Type[] parameterTypes) { TypographyUtils.TypographyMethodSignature tm = new TypographyUtils.TypographyMethodSignature(className, parameterTypes , methodName); MethodInfo m = (MethodInfo)cachedMethods.Get(tm); if (m == null) { m = FindClass(className).GetMethod(methodName, parameterTypes); cachedMethods.Put(tm, m); } return(m); }
public override bool Equals(Object o) { if (this == o) { return(true); } if (o == null || GetType() != o.GetType()) { return(false); } TypographyUtils.TypographyMethodSignature that = (TypographyUtils.TypographyMethodSignature)o; if (!className.Equals(that.className)) { return(false); } if (!JavaUtil.ArraysEquals(parameterTypes, that.parameterTypes)) { return(false); } return(methodName != null?methodName.Equals(that.methodName) : that.methodName == null); }