예제 #1
0
 public static void PushRange <T>(this Stack <T> self, IEnumerator <object> enumerator)
 => self.PushRange(enumerator, true);
예제 #2
0
 public static void PushRange <T>(this Stack <T> self, IEnumerable <object> collection, bool allowDuplicate)
 => self.PushRange(collection?.GetEnumerator(), allowDuplicate);
예제 #3
0
 public static void PushRange <T>(this Stack <T> self, params object[] items)
 => self.PushRange(true, items);
예제 #4
0
 public static void PushRange <T>(this Stack <T> self, IEnumerable <object> collection)
 => self.PushRange(collection, true);
예제 #5
0
 public static void PushRange <T>(this Stack <T> self, bool allowDuplicate, params T[] items)
 => self.PushRange(allowDuplicate, false, items);