コード例 #1
0
ファイル: ScannedItem.cs プロジェクト: v4nyl/SkiDzEX
 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
ファイル: ScannedItem.cs プロジェクト: v4nyl/SkiDzEX
        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));
            }
        }
コード例 #3
0
        public GenericInstSig CreateGenericTypeSig(ScannedItem from)
        {
            return(new GenericInstSig(GetTarget(), TrueTypes.Count));
            // TODO: Potential error: The code following this is never executed, but it looks like it is the correct version. Needs to be verified.

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