コード例 #1
0
 public GenericInstMethodSig CreateGenericMethodSig(ScannedItem from)
 {
     if (from == null)
     {
         return(new GenericInstMethodSig(TrueTypes));
     }
     else
     {
         TypeSig[] types = TrueTypes.Select(t => from.ConvertToGenericIfAvalible(t)).ToArray();
         return(new GenericInstMethodSig(types));
     }
 }
コード例 #2
0
        public GenericInstSig CreateGenericTypeSig(ScannedItem from)
        {
            return(new GenericInstSig(GetTarget(), TrueTypes.Count));

            if (from == null)
            {
                return(new GenericInstSig(GetTarget(), TrueTypes.ToArray()));
            }
            else
            {
                TypeSig[] types = TrueTypes.Select(t => from.ConvertToGenericIfAvalible(t)).ToArray();
                return(new GenericInstSig(GetTarget(), types));
            }
        }