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)); } }
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)); } }
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); * } */ }