private static void ReadListHelper(IEnumerable en, List <T> lst, FormatObjectDeserializer deserializer) { deserializer.VerifyDataNotNull(en, "enumerable"); foreach (object obj2 in en) { T local = deserializer.DeserializeObject(PSObjectHelper.AsPSObject(obj2)) as T; deserializer.VerifyDataNotNull(local, "entry"); lst.Add(local); } }
private static void ReadListHelper(IEnumerable en, List <T> lst, FormatObjectDeserializer deserializer) { deserializer.VerifyDataNotNull(en, "enumerable"); foreach (object obj in en) { FormatInfoData fid = deserializer.DeserializeObject(PSObjectHelper.AsPSObject(obj)); T entry = fid as T; deserializer.VerifyDataNotNull(entry, "entry"); lst.Add(entry); } }