Re: I am trying to convert a C# file to VB.NET - need help

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Learner wrote:
Hello,
Here is the code snippet I got strucked at.
I am unable to convert the below line of code to its equavalent vb.net
code. could some one please help me with this?

[DataObjectMethod(DataObjectMethodType.Select, true)]
static public List<RoleData> GetRoles()
{
return GetRoles(null, false);
}


Thanks
-L

<DataObjectMethod (DataObjectMethodType.Select, True)> _
Public Shared Function GetRoles () As List (Of RoleData)
Return GetRoles (Nothing, False)
End Function

HTH
--
Tom Shelton [MVP]

.