コード例 #1
0
ファイル: DefaultBeanType.cs プロジェクト: nesrinesghaier/upa
 public virtual System.Reflection.MethodInfo GetMethod(System.Type type, string name, System.Type ret, params System.Type [] args)
 {
     Net.Vpc.Upa.Impl.Util.MethodSignature key    = new Net.Vpc.Upa.Impl.Util.MethodSignature(name, args);
     System.Reflection.MethodInfo          method = Net.Vpc.Upa.Impl.FwkConvertUtils.GetMapValue <Net.Vpc.Upa.Impl.Util.MethodSignature, System.Reflection.MethodInfo>(methods, key);
     if (method == null)
     {
         if (!methods.ContainsKey(key))
         {
             method       = GetMethod00(type, name, ret, args);
             methods[key] = method;
         }
     }
     return(method);
 }
コード例 #2
0
 public override bool Equals(object o)
 {
     if (this == o)
     {
         return(true);
     }
     if (!(o is Net.Vpc.Upa.Impl.Util.MethodSignature))
     {
         return(false);
     }
     Net.Vpc.Upa.Impl.Util.MethodSignature that = (Net.Vpc.Upa.Impl.Util.MethodSignature)o;
     if (name != null ? !name.Equals(that.name) : that.name != null)
     {
         return(false);
     }
     // Probably incorrect - comparing Object[] arrays with Arrays.equals
     return(Net.Vpc.Upa.Impl.FwkConvertUtils.ArraysEquals <System.Type>(parameterTypes, that.parameterTypes));
 }