<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Collections%2FStack</id>
		<title>Csharp/C Sharp by API/System.Collections/Stack - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Collections%2FStack"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Collections/Stack&amp;action=history"/>
		<updated>2026-04-30T00:10:18Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Collections/Stack&amp;diff=4048&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Collections/Stack&amp;diff=4048&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Collections/Stack&amp;diff=4049&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Collections/Stack&amp;diff=4049&amp;oldid=prev"/>
				<updated>2010-05-26T12:08:57Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Stack.Count==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
public class Starter {&lt;br /&gt;
    public static void Main() {&lt;br /&gt;
        Stack numbers = new Stack(new int[] { 1, 2, 3, 4, 5, 6 });&lt;br /&gt;
        int total = numbers.Count;&lt;br /&gt;
        for (int count = 0; count &amp;lt; total; ++count) {&lt;br /&gt;
            Console.WriteLine(numbers.Pop());&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Stack.Peek()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
 using System;&lt;br /&gt;
 using System.Collections;&lt;br /&gt;
    public class TesterStackDemo{&lt;br /&gt;
       public void Run(){&lt;br /&gt;
           Stack intStack = new Stack();&lt;br /&gt;
           for (int i = 0;i&amp;lt;8;i++){&lt;br /&gt;
               intStack.Push(i*5);&lt;br /&gt;
           }&lt;br /&gt;
           Console.Write( &amp;quot;intStack values:\t&amp;quot; );&lt;br /&gt;
           DisplayValues( intStack );&lt;br /&gt;
           Console.WriteLine( &amp;quot;\n(Pop)\t{0}&amp;quot;,intStack.Pop() );&lt;br /&gt;
           Console.Write( &amp;quot;intStack values:\t&amp;quot; );&lt;br /&gt;
           DisplayValues( intStack );&lt;br /&gt;
           Console.WriteLine( &amp;quot;\n(Pop)\t{0}&amp;quot;,intStack.Pop() );&lt;br /&gt;
           Console.Write( &amp;quot;intStack values:\t&amp;quot; );&lt;br /&gt;
           DisplayValues( intStack );&lt;br /&gt;
           Console.WriteLine( &amp;quot;\n(Peek)   \t{0}&amp;quot;,intStack.Peek() );&lt;br /&gt;
           Console.Write( &amp;quot;intStack values:\t&amp;quot; );&lt;br /&gt;
           DisplayValues( intStack );&lt;br /&gt;
       }&lt;br /&gt;
       public static void DisplayValues(IEnumerable myCollection ){&lt;br /&gt;
            foreach (object o in myCollection){&lt;br /&gt;
                Console.WriteLine(o);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        static void Main()&lt;br /&gt;
        {&lt;br /&gt;
          TesterStackDemo t = new TesterStackDemo();&lt;br /&gt;
          t.Run();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Stack.ToArray()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
 using System;&lt;br /&gt;
 using System.Collections;&lt;br /&gt;
    public class TesterStackArray&lt;br /&gt;
    {&lt;br /&gt;
       public void Run()&lt;br /&gt;
       {&lt;br /&gt;
           Stack intStack = new Stack();&lt;br /&gt;
           for (int i = 1;i&amp;lt;5;i++){&lt;br /&gt;
               intStack.Push(i*5);&lt;br /&gt;
           }&lt;br /&gt;
           const int arraySize = 10;&lt;br /&gt;
           int[] testArray = new int[arraySize];&lt;br /&gt;
           for (int i = 1; i &amp;lt; arraySize; i++)&lt;br /&gt;
           {&lt;br /&gt;
               testArray[i] = i * 100;&lt;br /&gt;
           }&lt;br /&gt;
           Console.WriteLine(&amp;quot;\nContents of the test array&amp;quot;);&lt;br /&gt;
           DisplayValues( testArray );&lt;br /&gt;
           intStack.CopyTo( testArray, 3 );&lt;br /&gt;
           Console.WriteLine( &amp;quot;\nTestArray after copy:  &amp;quot;);&lt;br /&gt;
           DisplayValues( testArray );&lt;br /&gt;
           Object[] myArray = intStack.ToArray();&lt;br /&gt;
           Console.WriteLine( &amp;quot;\nThe new  array:&amp;quot; );&lt;br /&gt;
           DisplayValues( myArray );&lt;br /&gt;
       }&lt;br /&gt;
       public static void DisplayValues(IEnumerable myCollection ){&lt;br /&gt;
            foreach (object o in myCollection){&lt;br /&gt;
                Console.WriteLine(o);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
       static void Main()&lt;br /&gt;
       {&lt;br /&gt;
          TesterStackArray t = new TesterStackArray();&lt;br /&gt;
          t.Run();&lt;br /&gt;
       }&lt;br /&gt;
    }&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>