•  MrHao
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
Hi, everybody!
when I convert c # code to error occurred

Compiler Error Message: BC36641: Lambda parameter 'subrow' hides a variable in an enclosing block, a previously defined range variable, or an implicitly declared variable in a query expression.

Source Error:

Line 273: Dim arlist As New ArrayList()
Line 274:
Line 275: For Each subrow In Me.SubDataSource.Rows.Cast(Of DataRow)().Where(Function(subrow) row("ForumID").ToType(Of Integer)() = subrow("ParentID").ToType(Of Integer)())
Line 276: arlist.Add(subrow)
Line 277: Next


Exception Details: System.MissingMemberException: Public member 'IsNullOrEmptyDBField' on type 'DBNull' not found.

Source Error:

Line 76: arr = DirectCast(Me._dataSource, DataRow())
Line 77: For j As Interger = 0 To arr.Count() - 1
Line 78: If Not arr(j)("ParentID").IsNullOrEmptyDBField() Then
Line 79: If Me.SubDataSource Is Nothing Then
Line 80: Me.SubDataSource = arr(j).Table.Clone()

can you help me ?

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved