예제 #1
0
        /// <summary>calling this method "method" will break C# conversion with the old converter
        ///     </summary>
        public static MethodInfo GetMethod(string className, string methodName, Type[] paramClasses
                                           )
        {
            Type clazz = ReflectPlatform.ForName(className);

            if (clazz == null)
            {
                return(null);
            }
            return(GetMethod(clazz, methodName, paramClasses));
        }
예제 #2
0
 /// <exception cref="Sharpen.Lang.InstantiationException"></exception>
 /// <exception cref="System.MemberAccessException"></exception>
 private IObjectTranslator NewTranslatorFromPlatform(string translatorName)
 {
     return((IObjectTranslator)System.Activator.CreateInstance(ReflectPlatform.ForName
                                                                   (translatorName)));
 }