You need to uncomment the line: 'using System.Collections.Generics;'<br><br><div><span class="gmail_quote">On 10/6/06, <b class="gmail_sendername">Jon Chambers</b> &lt;<a href="mailto:joncham@gmail.com">joncham@gmail.com</a>
&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">That should be System.Collections.Generic:<br><br><a href="http://msdn2.microsoft.com/en-us/library/system.collections.generic.aspx" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://msdn2.microsoft.com/en-us/library/system.collections.generic.aspx</a><div><span class="e" id="q_10e1ae72b61767eb_1"><br><br><div>
<span class="gmail_quote">On 10/5/06, <b class="gmail_sendername">Xeno Campanoli</b> &lt;<a href="mailto:xeno@eskimo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xeno@eskimo.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jon Chambers wrote:<br>&gt; You need to compile using gmcs, not mcs in order to use 2.0 features. Try:<br>&gt;<br>&gt; gmcs try003.cs<br>Here's the results of my try (It did compile and work when I commented<br>out the &quot;using 
System.Collections.Generics;&quot; line):<br><br>xeno@radioflyer:~/study/puzz/cs$ gmcs -debug try003.cs<br>try003.cs(5,7): error CS0234: The type or namespace name `Generics'<br>does not exist in the namespace `System.Collections'. Are you missing an
<br>assembly reference?<br>try003.cs(5,1): error CS0246: The type or namespace name<br>`Collections.Generics' could not be found. Are you missing a using<br>directive or an assembly reference?<br>Compilation failed: 2 error(s), 0 warnings
<br>xeno@radioflyer:~/study/puzz/cs$<br><br><br>&gt;<br>&gt; Thanks,<br>&gt; Jonathan<br>&gt;<br>&gt; On 10/5/06, *Xeno Campanoli* &lt; <a href="mailto:xeno@eskimo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
xeno@eskimo.com</a><br>&gt; &lt;mailto:<a href="mailto:xeno@eskimo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
xeno@eskimo.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I get the following diagnostic trying to compile code I cite at the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; bottom of this message:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; xeno@radioflyer:~/study/puzz/cs$ mcs -debug 
try003.cs<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; try003.cs(22,15): error CS8025: Parsing error<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Compilation failed: 1 error(s), 0 warnings<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; xeno@radioflyer:~/study/puzz/cs$<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You can also see I have the Generic using line commented out
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; because it<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; yields the following diagnostic when line 22 is commented out:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; xeno@radioflyer:~/study/puzz/cs$ mcs -debug try003.cs<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; try003.cs(5,7): error CS0234: The type or namespace name `Generics'
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; does not exist in the namespace `System.Collections'. Are you<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; missing an<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; assembly reference?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; try003.cs(5,1): error CS0246: The type or namespace name<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; `System.Collections.Generics' could not be found. Are you missing a
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; using directive or an assembly reference?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Compilation failed: 2 error(s), 0 warnings<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; xeno@radioflyer:~/study/puzz/cs$<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Here is the source file:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------------------------------------------------------
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; // BTreeTry<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; using System;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; using System.Collections;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; //using System.Collections.Generics;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; using System.Text;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; namespace BTreeTrySpace {
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; public class BTreeNode<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; public BTreeNode Left;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; public BTreeNode Right;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; public string VALUE;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; public class BTreeUtil<br>

&gt;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; // Everything else is at the class level, so same here to be<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; consistent.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; public const int MAXDEPTH = 32;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; //public Stack&lt;string&gt; sFlagStack;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; public stack&lt;Int32&gt; intStack = new Stack&lt;Int32&gt;(); // line 22
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; // public static BTreeNode sNodeStack[];<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; // public static int sNodeDepth;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; class BTreeTry {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; static void Main()<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; // Use the system console object
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; System.Console.WriteLine(&quot;Hello, Java!&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; // end of BTreeTry<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------------------------------------------------------------------------------------
<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Support Instant Runoff Voting! YES ON 3:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 1. Cut off Mudslinging Politics!<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 2. Bring back real Democracy!<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Mono-list maillist - <a href="mailto:Mono-list@lists.ximian.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Mono-list@lists.ximian.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:Mono-list@lists.ximian.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Mono-list@lists.ximian.com</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.ximian.com/mailman/listinfo/mono-list</a><br>&gt;<br>&gt;<br><br><br>--<br>
Support Instant Runoff Voting!&nbsp;&nbsp;YES ON 3:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.&nbsp;&nbsp;Cut off Mudslinging Politics!
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bring back real Democracy!<br><br>_______________________________________________<br>Mono-list maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Mono-list@lists.ximian.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Mono-list@lists.ximian.com</a><br><a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.ximian.com/mailman/listinfo/mono-list</a><br></blockquote></div><br>

</span></div><br>_______________________________________________<br>Mono-list maillist &nbsp;- &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-list</a><br><br><br></blockquote></div>
<br>