title: Operator = is not defined for types UIElement and UIElement ..?
body: <p>I translate from C# some code into VB.NET, (WPF, .NET 4)</p>
  
  <p>C#</p>
  
  <pre><code>// Update the Z-Index of every UIElement in the Canvas.
  foreach( UIElement childElement in base.Children )
  {
      if( childElement == element )
          Canvas.SetZIndex( element, elementNewZIndex );
  </code></pre>
  
  <p>VB.NET (auto-translated)</p>
  
  <pre><code>' Update the Z-Index of every UIElement in the Canvas. '
  For Each childElement As UIElement In MyBase.Children
    If childElement = element Then        ' &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; Compile ERROR '
      Canvas.SetZIndex(element, elementNewZIndex)
  </code></pre>
  
  <p>Compile error:</p>
  
  <blockquote>
    <p>Error 4   Operator '=' is not defined for types
    'System.Windows.UIElement' and 'System.Windows.UIElement'.</p>
  </blockquote>
  
  <p>How is it possible, that in C# the operator is defined, but in VB.NET - NOT(?)</p>